1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00
Werner Koch 54c54e2824 Allow marking options as ignored.
* jnlib/argparse.h (ARGPARSE_OPT_IGNORE): New.
(ARGPARSE_TYPE_MASK): New, for internal use.
(ARGPARSE_ignore): New.
* jnlib/argparse.c (optfile_parse, arg_parse): Replace remaining
constants by macros.
(optfile_parse): Implement ARGPARSE_OPT_IGNORE.
(arg_parse): Exclide ignore options from --dump-options.
--

In addition to the ignore-invalid-option (commit 8ea49cf5) it is often
useful to mark options in a configuration which as NOP.  For example
options which have no more function at all but can be expected to be
found in existing conf files.  Such an option (or command) may now be
given as

  ARGPARSE_ignore (300, "obsolete-option")

The 300 is merely used as a non-valid single option name much like
group names or the 500+n values used for long options.

Signed-off-by: Werner Koch <wk@gnupg.org>
2013-04-22 15:03:34 +02:00
..
2013-04-22 15:03:34 +02:00
2013-04-22 15:03:34 +02:00
2009-07-07 16:51:33 +00:00
2007-07-04 19:49:40 +00:00
2009-07-07 16:51:33 +00:00
2009-06-04 14:19:21 +00:00
2006-10-02 11:54:35 +00:00
2009-08-26 09:24:04 +00:00
2009-07-07 16:51:33 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2009-07-07 16:51:33 +00:00
2007-07-04 19:49:40 +00:00
2007-10-01 14:48:39 +00:00
2008-11-11 11:45:17 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00

JNLIB - This is a collection of utility function which are too small
to put into a library.  The code here is licensed under the LGPL.

libjnlib-config.h should be be modified for each project to make these
functions fit into the software. Mainly these are memory functions in
case you need another allocator.