From b1aaba1fc8176ac0b7c202a664d2554aa0967116 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 20 Jan 2008 17:25:44 -0600 Subject: 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. --- toys/patch.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'toys/patch.c') diff --git a/toys/patch.c b/toys/patch.c index 9ec748e2..34d33c79 100644 --- a/toys/patch.c +++ b/toys/patch.c @@ -45,7 +45,17 @@ config PATCH #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 -- cgit v1.2.3