Removed prefix flags from yacc and lex (to prepare for automake).

This commit is contained in:
Svend Sorensen
2005-03-21 21:55:00 +00:00
parent 5b34a8361e
commit 89f355e86d
7 changed files with 172 additions and 75 deletions

View File

@@ -11,10 +11,11 @@
#include <string.h>
#include "cd.h"
#include "time.h"
#include "toc_parse_prefix.h"
#define YYDEBUG 1
extern int toc_yylex();
extern int yylex();
void yyerror (char *s);
static Cd *cd = NULL;
@@ -325,7 +326,7 @@ opt_nl
/* lexer interface */
extern int toc_lineno;
extern int toc_yydebug;
extern int yydebug;
extern FILE *toc_yyin;
void yyerror (char *s)
@@ -336,9 +337,9 @@ void yyerror (char *s)
Cd *toc_parse (FILE *fp)
{
toc_yyin = fp;
toc_yydebug = 0;
yydebug = 0;
if (0 == toc_yyparse())
if (0 == yyparse())
return cd;
return NULL;