~mdw
/
runlisp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6c1c658
)
Add a couple more flag constants.
author
mdw
<mdw>
Thu, 19 Aug 1999 18:35:10 +0000
(18:35 +0000)
committer
mdw
<mdw>
Thu, 19 Aug 1999 18:35:10 +0000
(18:35 +0000)
mdwopt.h
patch
|
blob
|
blame
|
history
diff --git
a/mdwopt.h
b/mdwopt.h
index
c0c7d8a
..
02e84ab
100644
(file)
--- a/
mdwopt.h
+++ b/
mdwopt.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: mdwopt.h,v 1.
6 1999/05/20 23:00:3
0 mdw Exp $
+ * $Id: mdwopt.h,v 1.
7 1999/08/19 18:35:1
0 mdw Exp $
*
* Options parsing, similar to GNU @getopt_long@
*
*
* Options parsing, similar to GNU @getopt_long@
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: mdwopt.h,v $
/*----- 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.
* 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 {
/* --- New style flag names --- */
enum {
+ OPTF_NOARG = 0 /* No argument */
OPTF_ARGREQ = 1, /* Required argument */
OPTF_ARGOPT = 2, /* Optional 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 */
};
OPTF_SWITCH = 4, /* OR val into flag, don't store */
OPTF_NEGATE = 8 /* Allow long option to be negated */
};