Cm[ox]_format: document fields that are stored in reverse order.

master
Daniel Bünzli 2020-01-29 21:35:09 +01:00
parent b237282e97
commit 45d480a8fa
2 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,8 @@ type compilation_unit =
type library =
{ lib_units: compilation_unit list; (* List of compilation units *)
lib_custom: bool; (* Requires custom mode linking? *)
(* In the following fields the lists are reversed with respect to
how they end up being used on the command line. *)
lib_ccobjs: string list; (* C object files needed for -custom *)
lib_ccopts: string list; (* Extra opts to C compiler *)
lib_dllibs: string list } (* DLLs needed *)

View File

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