1 --- ./get_index.c.orig 1996-07-16 00:39:40.000000000 +0200
2 +++ ./get_index.c 2010-07-15 11:22:14.000000000 +0200
4 /* Copyright (c) 1994 Burra Gopal, Udi Manber. All Rights Reserved. */
10 extern unsigned int *dest_index_set;
11 extern unsigned char *dest_index_buf;
12 extern int mask_int[32];
14 extern int ByteLevelIndex;
15 extern int NOBYTELEVEL;
16 extern int OPTIMIZEBYTELEVEL;
17 --- ./agrep/checksg.c.orig 1996-07-16 00:39:29.000000000 +0200
18 +++ ./agrep/checksg.c 2010-07-15 11:22:14.000000000 +0200
20 /* Copyright (c) 1994 Sun Wu, Udi Manber, Burra Gopal. All Rights Reserved. */
23 #include "checkfile.h"
26 extern CHAR Progname[MAXNAME];
27 extern int SGREP, PAT_FILE, PAT_BUFFER, EXITONERROR, SIMPLEPATTERN,
28 CONSTANT, D, NOUPPER, JUMP, I, LINENUM, INVERSE, WORDBOUND, WHOLELINE,
29 --- ./agrep/bitap.c.orig 1996-07-16 00:39:28.000000000 +0200
30 +++ ./agrep/bitap.c 2010-07-15 11:22:14.000000000 +0200
32 extern int agrep_outlen;
33 extern int agrep_outpointer;
34 extern FILE *agrep_finalfp;
37 extern int NEW_FILE, POST_FILTER;
39 --- ./agrep/agrep.c.orig 1996-07-16 00:39:29.000000000 +0200
40 +++ ./agrep/agrep.c 2010-07-15 11:24:19.000000000 +0200
42 * selectively modified many routines to work with our text-compression algo.
47 #include "checkfile.h"
52 extern char **environ;
54 int pattern_index; /* index in argv where the pattern is */
56 int glimpse_isserver=0; /* so that there is no user interaction */
57 --- ./agrep/newmgrep.c.orig 1996-07-16 00:39:29.000000000 +0200
58 +++ ./agrep/newmgrep.c 2010-07-15 11:22:14.000000000 +0200
60 extern int agrep_outpointer;
61 extern int agrep_outlen;
62 extern CHAR * agrep_outbuffer;
64 extern int NEW_FILE, POST_FILTER;
66 extern int tuncompressible();
67 --- ./agrep/parse.c.orig 1996-07-16 00:39:28.000000000 +0200
68 +++ ./agrep/parse.c 2010-07-15 11:25:33.000000000 +0200
70 tree for that regular expression. */
78 --- ./agrep/preprocess.c.orig 1996-07-16 00:39:28.000000000 +0200
79 +++ ./agrep/preprocess.c 2010-07-15 11:22:14.000000000 +0200
81 /* upon return, Pattern contains the pattern to be processed by maskgen */
82 /* D_pattern contains transformed D_pattern */
87 extern int PAT_FILE, PAT_BUFFER;
89 extern int table[WORD][WORD];
90 extern int agrep_initialfd;
91 extern int EXITONERROR;
95 extern char *multibuf;
96 --- ./agrep/checkfile.c.orig 1996-07-16 00:39:28.000000000 +0200
97 +++ ./agrep/checkfile.c 2010-07-15 11:22:14.000000000 +0200
101 extern char Progname[];
104 unsigned char ibuf[MAXLINE];
106 --- ./agrep/maskgen.c.orig 1996-07-16 00:39:28.000000000 +0200
107 +++ ./agrep/maskgen.c 2010-07-15 11:22:14.000000000 +0200
109 /* Copyright (c) 1994 Sun Wu, Udi Manber, Burra Gopal. All Rights Reserved. */
113 extern unsigned D_endpos, endposition, Init1, wildmask;
115 extern unsigned char Progname[];
116 extern int agrep_initialfd;
117 extern int EXITONERROR;
122 --- ./agrep/sgrep.c.orig 1996-07-16 00:39:29.000000000 +0200
123 +++ ./agrep/sgrep.c 2010-07-15 11:22:14.000000000 +0200
125 extern int NEW_FILE, POST_FILTER;
127 extern int EXITONERROR;
129 extern int TCOMPRESSED;
130 extern int EASYSEARCH;
131 extern char FREQ_FILE[MAX_LINE_LEN], HASH_FILE[MAX_LINE_LEN], STRING_FILE[MAX_LINE_LEN];
132 --- ./agrep/asearch.c.orig 1996-07-16 00:39:28.000000000 +0200
133 +++ ./agrep/asearch.c 2010-07-15 11:22:14.000000000 +0200
135 extern int I, num_of_matched, prev_num_of_matched, TRUNCATE;
137 extern int CurrentByteOffset;
139 extern CHAR *agrep_inbuffer;
140 extern int agrep_inlen;
141 extern int agrep_initialfd;
142 --- ./agrep/compat.c.orig 1996-07-16 00:39:28.000000000 +0200
143 +++ ./agrep/compat.c 2010-07-15 11:22:14.000000000 +0200
145 /* Copyright (c) 1994 Sun Wu, Udi Manber, Burra Gopal. All Rights Reserved. */
146 /* test the conflicts between options */
153 extern char Progname[32];
154 extern int agrep_initialfd;
155 extern int EXITONERROR;
160 --- ./index/glimpse.c.orig 1996-07-18 03:58:47.000000000 +0200
161 +++ ./index/glimpse.c 2010-07-15 11:22:14.000000000 +0200
163 /* Copyright (c) 1994 Sun Wu, Udi Manber, Burra Gopal. All Rights Reserved. */
164 /* ./glimpse/index/glimpse.c */
168 #include <sys/time.h>
173 extern char **environ;
175 extern FILE *TIMEFILE; /* file descriptor for sorting .glimpse_filenames by time */
177 extern FILE *LOGFILE; /* file descriptor for LOG output */
178 --- ./index/partition.c.orig 1996-07-16 00:39:42.000000000 +0200
179 +++ ./index/partition.c 2010-07-15 11:22:14.000000000 +0200
181 /* Copyright (c) 1994 Sun Wu, Udi Manber, Burra Gopal. All Rights Reserved. */
182 /* ./glimpse/index/partition.c */
185 #include <sys/stat.h>
186 #include <sys/time.h>
189 int files_per_partition;
190 int files_in_partition;
191 int ATLEASTONEFILE = 0;
194 char patbuf[MAX_PAT];
195 extern unsigned char *src_index_buf;
196 --- ./index/region.c.orig 1996-07-16 00:39:42.000000000 +0200
197 +++ ./index/region.c 2010-07-15 11:27:00.000000000 +0200
199 /* Copyright (c) 1994 Sun Wu, Udi Manber, Burra Gopal. All Rights Reserved. */
200 /* From mail received from Bill Camargo and Darren Hardy in June 1994 */
211 - free(trl, sizeof(region_t));
214 current_regions = nextpos = NULL;
216 --- ./index/build_in.c.orig 1996-07-16 00:39:41.000000000 +0200
217 +++ ./index/build_in.c 2010-07-15 11:22:14.000000000 +0200
219 this 12 19 \n is 9 17 12 18 19 \n an 7 12 \n example 16 \n
220 -----------------------------------------------------------------------*/
228 char s[MAX_LINE_LEN], es1[MAX_LINE_LEN], es2[MAX_LINE_LEN], es3[MAX_LINE_LEN];
229 char s1[MAX_LINE_LEN];
231 static int maxsortlinelen = 0;
234 --- ./main.c.orig 1996-07-16 05:03:12.000000000 +0200
235 +++ ./main.c 2010-07-15 11:22:14.000000000 +0200
238 /* Borrowed from C-Lib */
239 extern char **environ;
243 #include "communicate.c"
244 --- ./libtemplate/util/log.c.orig 1996-07-16 00:39:50.000000000 +0200
245 +++ ./libtemplate/util/log.c 2010-07-15 11:22:14.000000000 +0200
249 #include <sys/file.h>
250 -#if defined(__STRICT_ANSI__)
251 +#if defined(__STRICT_ANSI__) || (defined(__GNUC__) && __GNUC__ >= 3)
257 * log() - used like printf(3). Prints message to stdout.
259 -#if defined(__STRICT_ANSI__)
260 +#if defined(__STRICT_ANSI__) || (defined(__GNUC__) && __GNUC__ >= 3)
261 void log(char *fmt,...)
266 * errorlog() - used like printf(3). Prints error message to stderr.
268 -#if defined(__STRICT_ANSI__)
269 +#if defined(__STRICT_ANSI__) || (defined(__GNUC__) && __GNUC__ >= 3)
270 void errorlog(char *fmt,...)
275 * fatal() - used like printf(3). Prints error message to stderr and exits
277 -#if defined(__STRICT_ANSI__)
278 +#if defined(__STRICT_ANSI__) || (defined(__GNUC__) && __GNUC__ >= 3)
279 void fatal(char *fmt,...)
282 --- ./libtemplate/util/Makefile.in.orig 1996-07-16 00:39:50.000000000 +0200
283 +++ ./libtemplate/util/Makefile.in 2010-07-15 11:22:14.000000000 +0200
288 -OBJS = buffer.o host.o log.o strdup.o system.o strerror.o \
289 +OBJS = buffer.o host.o log.o system.o \
293 --- ./libtemplate/include/util.h.orig 1996-07-16 00:39:47.000000000 +0200
294 +++ ./libtemplate/include/util.h 2010-07-15 11:22:14.000000000 +0200
296 void init_log3 _PARAMS((char *,FILE *,FILE *)); /* Initialize log routines */
297 void log_errno _PARAMS((char *)); /* Same as perror(3) */
298 void fatal_errno _PARAMS((char *)); /* Same as perror(3) & exit */
299 -#ifdef __STRICT_ANSI__
300 +#if defined(__STRICT_ANSI__) || (defined(__GNUC__) && __GNUC__ >= 3)
302 +# if defined(__GNUC__)
304 +void xlog _PARAMS((char *, ...)); /* Log a message */
306 void log _PARAMS((char *, ...)); /* Log a message */
308 void errorlog _PARAMS((char *, ...)); /* Log an error message */
309 void fatal _PARAMS((char *, ...)); /* Log error msg and exit */
312 void fatal _PARAMS(());
317 -char *strdup _PARAMS((char *)); /* Duplicate a string */
321 void parse_argv _PARAMS((char **, char *)); /* Parse a command string */
323 --- ./Makefile.in.orig 1996-07-16 00:39:27.000000000 +0200
324 +++ ./Makefile.in 2010-07-15 11:22:14.000000000 +0200
327 CFLAGS = @CFLAGS@ -O -DSTRUCTURED_QUERIES=1
328 ALL_CFLAGS = $(CFLAGS) $(DEFS) -I$(INDEXSRC) -I$(AGREPSRC) -I$(TEMPLATESRC)/include
329 -LINKFLAGS = @LINKFLAGS@ -I$(INDEXSRC) -I$(AGREPSRC) -I$(TEMPLATESRC)/include
330 +LINKFLAGS = -I$(INDEXSRC) -I$(AGREPSRC) -I$(TEMPLATESRC)/include
333 $(CC) -c $(ALL_CFLAGS) $<