aboutsummaryrefslogtreecommitdiff
path: root/toys.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-11-19 02:49:22 -0500
committerRob Landley <rob@landley.net>2006-11-19 02:49:22 -0500
commit8324b89598b2aee0957a0378f0f63ff5755498be (patch)
tree6958c34834147ab29607a8e67aca2b05a751f2ee /toys.h
parentb29ceb8bd0f99134fe215eebc531dbcd7717e8ae (diff)
downloadtoybox-8324b89598b2aee0957a0378f0f63ff5755498be.tar.gz
New option parsing infrastructure (doesn't use getopt). Hook it up to
existing applets. Still a bit buggy, but bits of it work.
Diffstat (limited to 'toys.h')
-rw-r--r--toys.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/toys.h b/toys.h
index 003a827c..67cc2757 100644
--- a/toys.h
+++ b/toys.h
@@ -38,7 +38,11 @@ void toy_exec(char *argv[]);
extern struct toy_context {
struct toy_list *which; // Which entry in toy_list is this one?
int exitval; // Value error_exit feeds to exit()
- int optflags; // Command line option flags
char **argv; // Command line arguments
- char buf[4096];
+ unsigned optflags; // Command line option flags from get_optflags()
+ char **optargs; // Arguments left over from get_optflags()
} toys;
+
+// One big temporary buffer, for use by applets (not library functions).
+
+char buf[4096];