diff options
Diffstat (limited to 'subgetopt.h')
-rw-r--r-- | subgetopt.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/subgetopt.h b/subgetopt.h new file mode 100644 index 0000000..41ad26a --- /dev/null +++ b/subgetopt.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /* Public domain. */ | ||
2 | |||
3 | #ifndef SUBGETOPT_H | ||
4 | #define SUBGETOPT_H | ||
5 | |||
6 | #ifndef SUBGETOPTNOSHORT | ||
7 | #define sgopt subgetopt | ||
8 | #define sgoptarg subgetoptarg | ||
9 | #define sgoptind subgetoptind | ||
10 | #define sgoptpos subgetoptpos | ||
11 | #define sgoptproblem subgetoptproblem | ||
12 | #define sgoptprogname subgetoptprogname | ||
13 | #define sgoptdone subgetoptdone | ||
14 | #endif | ||
15 | |||
16 | #define SUBGETOPTDONE -1 | ||
17 | |||
18 | extern int subgetopt(int,const char *const *,const char *); | ||
19 | extern const char *subgetoptarg; | ||
20 | extern int subgetoptind; | ||
21 | extern int subgetoptpos; | ||
22 | extern int subgetoptproblem; | ||
23 | extern const char *subgetoptprogname; | ||
24 | extern int subgetoptdone; | ||
25 | |||
26 | #endif | ||