summaryrefslogtreecommitdiff
path: root/subgetopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'subgetopt.h')
-rw-r--r--subgetopt.h26
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
18extern int subgetopt(int,const char *const *,const char *);
19extern const char *subgetoptarg;
20extern int subgetoptind;
21extern int subgetoptpos;
22extern int subgetoptproblem;
23extern const char *subgetoptprogname;
24extern int subgetoptdone;
25
26#endif