From 7aa651a6a4496d848f86de9b1e6b3a003256a01f Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 13 Nov 2012 17:14:08 -0600 Subject: 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. --- toys.h | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'toys.h') diff --git a/toys.h b/toys.h index eb7c67f6..72670cd7 100644 --- a/toys.h +++ b/toys.h @@ -1,4 +1,3 @@ -/* vi: set ts=4 :*/ /* Toybox infrastructure. * * Copyright 2006 Rob Landley @@ -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). -- cgit v1.2.3