Skip to content

Commit 45d480a

Browse files
committed
Cm[ox]_format: document fields that are stored in reverse order.
1 parent b237282 commit 45d480a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

file_formats/cmo_format.mli

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ type compilation_unit =
5353
type library =
5454
{ lib_units: compilation_unit list; (* List of compilation units *)
5555
lib_custom: bool; (* Requires custom mode linking? *)
56+
(* In the following fields the lists are reversed with respect to
57+
how they end up being used on the command line. *)
5658
lib_ccobjs: string list; (* C object files needed for -custom *)
5759
lib_ccopts: string list; (* Extra opts to C compiler *)
5860
lib_dllibs: string list } (* DLLs needed *)

file_formats/cmx_format.mli

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,7 @@ type unit_infos =
5252

5353
type library_infos =
5454
{ lib_units: (unit_infos * Digest.t) list; (* List of unit infos w/ MD5s *)
55+
(* In the following fields the lists are reversed with respect to
56+
how they end up being used on the command line. *)
5557
lib_ccobjs: string list; (* C object files needed *)
5658
lib_ccopts: string list } (* Extra opts to C compiler *)

0 commit comments

Comments
 (0)