diff options
author | Rob Landley <rob@landley.net> | 2006-11-19 02:49:22 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-11-19 02:49:22 -0500 |
commit | 8324b89598b2aee0957a0378f0f63ff5755498be (patch) | |
tree | 6958c34834147ab29607a8e67aca2b05a751f2ee /toys.h | |
parent | b29ceb8bd0f99134fe215eebc531dbcd7717e8ae (diff) | |
download | toybox-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.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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]; |