diff options
author | Rob Landley <rob@landley.net> | 2012-11-13 17:14:08 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2012-11-13 17:14:08 -0600 |
commit | 7aa651a6a4496d848f86de9b1e6b3a003256a01f (patch) | |
tree | 6995fb4b7cc2e90a6706b0239ebaf95d9dbab530 /toys.h | |
parent | 571b0706cce45716126776d0ad0f6ac65f4586e3 (diff) | |
download | toybox-7aa651a6a4496d848f86de9b1e6b3a003256a01f.tar.gz |
Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style.
The actual code should be the same afterward, this is just cosmetic refactoring.
Diffstat (limited to 'toys.h')
-rw-r--r-- | toys.h | 25 |
1 files changed, 12 insertions, 13 deletions
@@ -1,4 +1,3 @@ -/* vi: set ts=4 :*/ /* Toybox infrastructure. * * Copyright 2006 Rob Landley <rob@landley.net> @@ -87,23 +86,23 @@ void toy_exec(char *argv[]); // Array of available applets extern struct toy_list { - char *name; - void (*toy_main)(void); - char *options; - int flags; + char *name; + void (*toy_main)(void); + char *options; + int flags; } toy_list[]; // Global context shared by all commands. extern struct toy_context { - struct toy_list *which; // Which entry in toy_list is this one? - int exitval; // Value error_exit feeds to exit() - char **argv; // Original command line arguments - unsigned optflags; // Command line option flags from get_optflags() - char **optargs; // Arguments left over from get_optflags() - int optc; // Count of optargs - int exithelp; // Should error_exit print a usage message first? - int old_umask; // Old umask preserved by TOYFLAG_UMASK + struct toy_list *which; // Which entry in toy_list is this one? + int exitval; // Value error_exit feeds to exit() + char **argv; // Original command line arguments + unsigned optflags; // Command line option flags from get_optflags() + char **optargs; // Arguments left over from get_optflags() + int optc; // Count of optargs + int exithelp; // Should error_exit print a usage message first? + int old_umask; // Old umask preserved by TOYFLAG_UMASK } toys; // One big temporary buffer, for use by commands (not library functions). |