Mercurial > hg > toybox
diff toys/patch.c @ 237:7cb15eae1664
Zap toylist.h, moving contents of global structures into DEFINE_GLOBALS()
macros in each C file, and making generated/globals.h from that. Rename
"toy" to "this" along the way to avoid toy/toys confusion.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 20 Jan 2008 17:25:44 -0600 |
parents | 163498bf547b |
children | 630b2e12db16 |
line wrap: on
line diff
--- a/toys/patch.c Sat Jan 19 17:55:45 2008 -0600 +++ b/toys/patch.c Sun Jan 20 17:25:44 2008 -0600 @@ -45,7 +45,17 @@ #include "toys.h" -#define TT toy.patch +DEFINE_GLOBALS( + char *infile; + long prefix; + + struct double_list *plines, *flines; + long oldline, oldlen, newline, newlen, linenum; + int context, state, filein, fileout, filepatch; + char *tempname, *oldname; +) + +#define TT this.patch #define FLAG_REVERSE 1 #define FLAG_PATHLEN 4