X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=dfa%2Fagrep.c;h=81835d084f1ce2c491e1479c75854a740952ede7;hb=40ca1d08c1d83b92e0b90951d918b252c61c63b2;hp=81f608c9d5fd3971666954f240fa2337a4eb4f3d;hpb=6f5101be21e854a5125b489a03814cc7509236cc;p=idzebra-moved-to-github.git diff --git a/dfa/agrep.c b/dfa/agrep.c index 81f608c..81835d0 100644 --- a/dfa/agrep.c +++ b/dfa/agrep.c @@ -4,7 +4,13 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: agrep.c,v $ - * Revision 1.4 1995-01-24 16:00:21 adam + * Revision 1.6 1995-09-28 09:18:51 adam + * Removed various preprocessor defines. + * + * Revision 1.5 1995/09/04 12:33:25 adam + * Various cleanup. YAZ util used instead. + * + * Revision 1.4 1995/01/24 16:00:21 adam * Added -ansi to CFLAGS. * Some changes to the dfa module. * @@ -31,7 +37,7 @@ #include -#include +#include #include #include "imalloc.h" @@ -51,14 +57,6 @@ void error (const char *format, ...) exit (1); } -#ifdef YYDEBUG -#ifdef YACC -extern int yydebug; -#else -extern int alexdebug; -#endif -#endif - static int show_lines = 0; int agrep_options (argc, argv) @@ -80,15 +78,6 @@ char **argv; case 'n': show_lines = 1; continue; -#ifdef YYDEBUG - case 't': -#ifdef YACC - yydebug = 1; -#else - alexdebug = 1; -#endif - continue; -#endif case 'd': switch (*++*argv) { @@ -252,13 +241,6 @@ char **argv; struct DFA *dfa = dfa_init(); prog = *argv; -#ifdef YYDEBUG -#ifdef YACC - yydebug = 0; -#else - alexdebug = 0; -#endif -#endif setbuf (stdout, outbuf); i = agrep_options (argc, argv); if (i)