# Copyright (C) 1994, Index Data I/S
# All rights reserved.
# Sebastian Hammer, Adam Dickmeiss
-# $Id: Makefile,v 1.9 1995-09-15 09:32:08 adam Exp $
+# $Id: Makefile,v 1.10 1995-09-28 09:18:50 adam Exp $
SHELL=/bin/sh
RANLIB=ranlib
TPROG1=agrep
TPROG2=lexer
TPROG3=grepper
-DEFS=$(INCLUDE) -DYACC -DYYDEBUG=1 -DMEMDEBUG=1
+DEFS=$(INCLUDE) -DMEMDEBUG=1
LIB=../lib/dfa.a
PO = dfa.o imalloc.o states.o set.o bset.o
CPP=cc -E
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: agrep.c,v $
- * Revision 1.5 1995-09-04 12:33:25 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
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)
case 'n':
show_lines = 1;
continue;
-#ifdef YYDEBUG
- case 't':
-#ifdef YACC
- yydebug = 1;
-#else
- alexdebug = 1;
-#endif
- continue;
-#endif
case 'd':
switch (*++*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)
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: dfa.c,v $
- * Revision 1.3 1995-09-04 12:33:26 adam
+ * Revision 1.4 1995-09-28 09:18:52 adam
+ * Removed various preprocessor defines.
+ *
+ * Revision 1.3 1995/09/04 12:33:26 adam
* Various cleanup. YAZ util used instead.
*
* Revision 1.2 1995/01/25 11:30:50 adam
int debug_dfa_tran = 0;
int debug_dfa_followpos = 0;
int dfa_verbose = 0;
-int yydebug = 0;
static struct DFA_parse *parse_info = NULL;
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: lexer.c,v $
- * Revision 1.7 1995-09-04 12:33:27 adam
+ * Revision 1.8 1995-09-28 09:18:54 adam
+ * Removed various preprocessor defines.
+ *
+ * Revision 1.7 1995/09/04 12:33:27 adam
* Various cleanup. YAZ util used instead.
*
* Revision 1.6 1995/01/25 11:30:51 adam
exit (1);
}
-#ifdef YACC
-extern int yydebug;
-#else
-extern int alexdebug;
-#endif
int ccluse = 0;
static int lexer_options (int argc, char **argv)
case 's':
dfa_verbose = 1;
continue;
- case 't':
-#ifdef YACC
- yydebug = 1;
-#else
- alexdebug = 1;
-#endif
- continue;
case 'c':
ccluse = 1;
continue;
struct DFA *dfa;
prog = *argv;
-#ifdef YACC
- yydebug = 0;
-#else
- alexdebug = 0;
-#endif
dfa = dfa_init ();
i = lexer_options (argc, argv);
if (i)