search for: 2f053e8

Displaying 3 results from an estimated 3 matches for "2f053e8".

2016 Jul 18
0
[PATCH 3/3] builder: improve the handling of list formats
...= { delete_on_failure : bool; format : string option; gpg : string; - list_format : [`Short|`Long|`Json]; + list_format : List_entries.format; memsize : int option; network : bool; ops : Customize_cmdline.ops; diff --git a/builder/list_entries.ml b/builder/list_entries.ml index 2f053e8..2a1aef4 100644 --- a/builder/list_entries.ml +++ b/builder/list_entries.ml @@ -21,11 +21,24 @@ open Common_utils open Printf +type format = + | Short + | Long + | Json + +let list_formats = [ "short"; "long"; "json" ] + +let list_format_of_string = function +...
2016 Jul 18
4
[PATCH 1/3] mllib: Getopt: point to man page as additional help
On error, point also to the man page of the current tool in addition to '$TOOL --help'. --- mllib/getopt-c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mllib/getopt-c.c b/mllib/getopt-c.c index bf40f91..3efd5d3 100644 --- a/mllib/getopt-c.c +++ b/mllib/getopt-c.c @@ -69,8 +69,8 @@ cleanup_option_list (void *ptr) static void __attribute__((noreturn))
2015 Nov 10
7
[PATCH 0/4]: mllib: Add 'may' function, and refactoring.
The 'may' function is a higher-order function (HOF) that replaces: match x with | None -> () | Some x -> f x with: may f x The idea comes from lablgtk (OCaml Gtk bindings) where it is widely used. If this change is clearer than previous code, then this could be used in many more places. However I previously steered clear from using HOFs like this because they can be