INN commit: trunk/innfeed (configfile.y)

INN Commit rra at isc.org
Tue May 12 20:32:33 UTC 2020


    Date: Tuesday, May 12, 2020 @ 13:32:32
  Author: iulius
Revision: 10367

Fix yacc declaration for types

POSIX yacc reserves %type to nonterminals.
Found with new -Wyacc warning option in Bison 3.5.

Modified:
  trunk/innfeed/configfile.y

--------------+
 configfile.y |   20 +++++++-------------
 1 file changed, 7 insertions(+), 13 deletions(-)

Modified: configfile.y
===================================================================
--- configfile.y	2020-05-12 20:10:42 UTC (rev 10366)
+++ configfile.y	2020-05-12 20:32:32 UTC (rev 10367)
@@ -668,26 +668,20 @@
 
 %token PEER
 %token GROUP
-%token IVAL
-%token RVAL
+%token <integer> IVAL
+%token <real> RVAL
 %token NAME
-%token XSTRING
+%token <string> XSTRING
 %token SCOPE
 %token COLON
 %token LBRACE
 %token RBRACE
-%token TRUEBVAL
-%token FALSEBVAL
-%token CHAR
-%token WORD
+%token <name> TRUEBVAL
+%token <name> FALSEBVAL
+%token <chr> CHAR
+%token <name> WORD
 %token IP_ADDRESS
 
-%type <integer> IVAL
-%type <real> RVAL
-%type <string> XSTRING
-%type <chr> CHAR
-%type <name> TRUEBVAL FALSEBVAL WORD
-
 %%
 input: { 	
 		lineCount = 1 ;



More information about the inn-committers mailing list