search for: e5e832c

Displaying 2 results from an estimated 2 matches for "e5e832c".

2016 Jul 11
0
Re: [PATCH v2] OCaml tools: add and use a Getopt module
On Mon, Jul 11, 2016 at 06:03:39PM +0200, Pino Toscano wrote: > diff --git a/mllib/getopt-c.c b/mllib/getopt-c.c > new file mode 100644 > index 0000000..e5e832c > --- /dev/null > +++ b/mllib/getopt-c.c > +static void > +do_call1 (value funv, value paramv) > +{ > + CAMLparam2 (funv, paramv); > + CAMLlocal1 (rv); > + > + rv = caml_callback_exn (funv, paramv); > + > + if (Is_exception_result (rv)) > + fprintf (stderr...
2016 Jul 11
2
[PATCH v2] OCaml tools: add and use a Getopt module
...opt.spec * Getopt.doc) list -> (Getopt.keys * Getopt.spec * Getopt.doc) list (** Adds the standard libguestfs command line options to the specified ones, sorting them, and setting [long_options] to them. diff --git a/mllib/getopt-c.c b/mllib/getopt-c.c new file mode 100644 index 0000000..e5e832c --- /dev/null +++ b/mllib/getopt-c.c @@ -0,0 +1,424 @@ +/* argument parsing using getopt(3) + * Copyright (C) 2016 Red Hat Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software...