comparison 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
comparison
equal deleted inserted replaced
236:6b292ee780ab 237:7cb15eae1664
43 A file compared against /dev/null is created/deleted as appropriate. 43 A file compared against /dev/null is created/deleted as appropriate.
44 */ 44 */
45 45
46 #include "toys.h" 46 #include "toys.h"
47 47
48 #define TT toy.patch 48 DEFINE_GLOBALS(
49 char *infile;
50 long prefix;
51
52 struct double_list *plines, *flines;
53 long oldline, oldlen, newline, newlen, linenum;
54 int context, state, filein, fileout, filepatch;
55 char *tempname, *oldname;
56 )
57
58 #define TT this.patch
49 59
50 #define FLAG_REVERSE 1 60 #define FLAG_REVERSE 1
51 #define FLAG_PATHLEN 4 61 #define FLAG_PATHLEN 4
52 62
53 static void do_line(void *data) 63 static void do_line(void *data)