From 988f24328666a8847e261f8a48f1643bbf8564b5 Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Thu, 26 Jun 2003 18:17:09 +0000 Subject: # Removed the STRING_ADDRESS token since it was conflicting with the IDENTIFIER directive and also the keyword directives. --- src/grammar.y | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/grammar.y') diff --git a/src/grammar.y b/src/grammar.y index 6d39a53..00596dd 100644 --- a/src/grammar.y +++ b/src/grammar.y @@ -1,4 +1,4 @@ -/* $Id: grammar.y,v 1.22 2003-06-20 17:02:13 rjkaes Exp $ +/* $Id: grammar.y,v 1.23 2003-06-26 18:17:09 rjkaes Exp $ * * This is the grammar for tinyproxy's configuration file. It needs to be * in sync with scanner.l. If you know more about yacc and lex than I do @@ -37,7 +37,6 @@ int yylex(void); %union { unsigned int num; char *cptr; - void *ptr; } /* statements */ @@ -69,7 +68,6 @@ int yylex(void); %token NUMBER %token STRING %token NUMERIC_ADDRESS -%token STRING_ADDRESS %token NETMASK_ADDRESS %type yesno @@ -238,7 +236,7 @@ network_address ; unique_address - : STRING_ADDRESS + : IDENTIFIER | NUMERIC_ADDRESS ; @@ -255,7 +253,7 @@ string %% -extern unsigned int scanner_lineno; +extern int yylineno; void yyerror(char *s) @@ -267,6 +265,6 @@ yyerror(char *s) headerdisplayed = 1; } - fprintf(stderr, "\t%s:%d: %s\n", config.config_file, scanner_lineno, s); + fprintf(stderr, "\t%s:%d: %s\n", config.config_file, yylineno, s); exit(EXIT_FAILURE); } -- cgit v1.2.3