INN commit: branches/2.6/innfeed (configfile.y)

INN Commit rra at isc.org
Thu Nov 12 20:10:15 UTC 2020


    Date: Thursday, November 12, 2020 @ 12:10:14
  Author: iulius
Revision: 10394

Fix yacc declaration for types

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

Modified:
  branches/2.6/innfeed/configfile.y

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

Modified: configfile.y
===================================================================
--- configfile.y	2020-11-12 19:59:57 UTC (rev 10393)
+++ configfile.y	2020-11-12 20:10:14 UTC (rev 10394)
@@ -666,26 +666,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