X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dfa%2Fagrep.c;h=405104d57ff8d1a4c71485adef5e5bb05e5a5aa4;hb=a825e22395e14761bcb2f88177d1a86f3da2843a;hp=1f23dc5fe87779358381b647ff4d231d85b075fc;hpb=b879b04a092d5b00cc866cf16f755e55053d2e89;p=idzebra-moved-to-github.git diff --git a/dfa/agrep.c b/dfa/agrep.c index 1f23dc5..405104d 100644 --- a/dfa/agrep.c +++ b/dfa/agrep.c @@ -4,7 +4,13 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: agrep.c,v $ - * Revision 1.5 1995-09-04 12:33:25 adam + * Revision 1.7 1995-10-16 09:31:24 adam + * Bug fix. + * + * 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 @@ -54,14 +60,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) @@ -83,15 +81,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) { @@ -255,13 +244,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) @@ -295,7 +277,8 @@ char **argv; } if (!no) { - fprintf (stderr, "%s: no files specified\n", prog); + fprintf (stderr, "usage:\n " + " %s [-d] [-v] [-n] [-f] pattern file ..\n", prog); return 2; } fflush(stdout);