diff options
author | Werner Koch <wk@gnupg.org> | 2008-09-29 17:02:55 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2008-09-29 17:02:55 +0200 |
commit | 7d63aa42e5d2c086810e3d7eca64a01f366b4e88 (patch) | |
tree | 7dccaebaa7f86d56fef8beb00eb9c2bc583ede20 /jnlib/argparse.h | |
parent | 2008-09-28 Marcus Brinkmann <marcus@g10code.com> (diff) | |
download | gnupg2-7d63aa42e5d2c086810e3d7eca64a01f366b4e88.tar.xz gnupg2-7d63aa42e5d2c086810e3d7eca64a01f366b4e88.zip |
Remove hacks which are not anymore needed since we now require Libgcrypt 1.4
Diffstat (limited to 'jnlib/argparse.h')
-rw-r--r-- | jnlib/argparse.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/jnlib/argparse.h b/jnlib/argparse.h index 7972438b8..a0ce43a43 100644 --- a/jnlib/argparse.h +++ b/jnlib/argparse.h @@ -55,6 +55,19 @@ typedef struct { } ARGPARSE_OPTS; +/* Error values. */ +#define ARGPARSE_IS_ARG (-1) +#define ARGPARSE_INVALID_OPTION (-2) +#define ARGPARSE_MISSING_ARG (-3) +#define ARGPARSE_KEYWORD_TOO_LONG (-4) +#define ARGPARSE_READ_ERROR (-5) +#define ARGPARSE_UNEXPECTED_ARG (-6) +#define ARGPARSE_INVALID_COMMAND (-7) +#define ARGPARSE_AMBIGUOUS_OPTION (-8) +#define ARGPARSE_AMBIGUOUS_COMMAND (-9) +#define ARGPARSE_INVALID_ALIAS (-10) +#define ARGPARSE_OUT_OF_CORE (-11) + int arg_parse( ARGPARSE_ARGS *arg, ARGPARSE_OPTS *opts); int optfile_parse( FILE *fp, const char *filename, unsigned *lineno, |