From: mdw Date: Thu, 19 Aug 1999 18:35:10 +0000 (+0000) Subject: Add a couple more flag constants. X-Git-Tag: 1.2.5~3 X-Git-Url: https://git.distorted.org.uk/~mdw/cfd/commitdiff_plain/70f692472602e01f7b5aeac477b343197a9e13df?hp=6c1c6588c05ab80588c447e306ff22a7bc4628fe Add a couple more flag constants. --- diff --git a/mdwopt.h b/mdwopt.h index c0c7d8a..02e84ab 100644 --- a/mdwopt.h +++ b/mdwopt.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: mdwopt.h,v 1.6 1999/05/20 23:00:30 mdw Exp $ + * $Id: mdwopt.h,v 1.7 1999/08/19 18:35:10 mdw Exp $ * * Options parsing, similar to GNU @getopt_long@ * @@ -30,6 +30,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: mdwopt.h,v $ + * Revision 1.7 1999/08/19 18:35:10 mdw + * Add a couple more flag constants. + * * Revision 1.6 1999/05/20 23:00:30 mdw * Carry through changes to the interface properly in the documentation. * Other little formatting things. @@ -147,8 +150,10 @@ enum { /* --- New style flag names --- */ enum { + OPTF_NOARG = 0 /* No argument */ OPTF_ARGREQ = 1, /* Required argument */ OPTF_ARGOPT = 2, /* Optional argument */ + OPTF_ARG = 3, /* Argument type bitmask */ OPTF_SWITCH = 4, /* OR val into flag, don't store */ OPTF_NEGATE = 8 /* Allow long option to be negated */ };