[nftables] parser: consistently use $@ for location of entire grouping

Patrick McHardy netfilter-cvslog-bounces at lists.netfilter.org
Fri Mar 20 08:17:16 CET 2009


Gitweb:		http://git.netfilter.org/cgi-bin/gitweb.cgi?p=nftables.git;a=commit;h=2ae0ab5fb3eabc149bad1250c681a7a5f2aea694
commit 2ae0ab5fb3eabc149bad1250c681a7a5f2aea694
Author:     Patrick McHardy <kaber at trash.net>
AuthorDate: Fri Mar 20 06:25:10 2009 +0100
Commit:     Patrick McHardy <kaber at trash.net>
CommitDate: Fri Mar 20 06:25:10 2009 +0100

    parser: consistently use $@ for location of entire grouping
    
    Replace use of specific location references for single-element rules.
    
    Signed-off-by: Patrick McHardy <kaber at trash.net>

commit 666c4bf09582e7cb6fc907f19b87aeb7c4a5ea1d
Author:     Patrick McHardy <kaber at trash.net>
AuthorDate: Fri Mar 20 06:18:44 2009 +0100
Commit:     Patrick McHardy <kaber at trash.net>
CommitDate: Fri Mar 20 06:18:44 2009 +0100

    parser: fix common_block usage in chain and table blocks
    
    Signed-off-by: Patrick McHardy <kaber at trash.net>
       via  2ae0ab5fb3eabc149bad1250c681a7a5f2aea694 (commit)
       via  666c4bf09582e7cb6fc907f19b87aeb7c4a5ea1d (commit)
      from  311782cbea8ca77e0e126f1f95b02692a32899ab (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2ae0ab5fb3eabc149bad1250c681a7a5f2aea694
Author: Patrick McHardy <kaber at trash.net>
Date:   Fri Mar 20 06:25:10 2009 +0100

    parser: consistently use $@ for location of entire grouping
    
    Replace use of specific location references for single-element rules.
    
    Signed-off-by: Patrick McHardy <kaber at trash.net>

commit 666c4bf09582e7cb6fc907f19b87aeb7c4a5ea1d
Author: Patrick McHardy <kaber at trash.net>
Date:   Fri Mar 20 06:18:44 2009 +0100

    parser: fix common_block usage in chain and table blocks
    
    Signed-off-by: Patrick McHardy <kaber at trash.net>

-----------------------------------------------------------------------

 src/parser.y |   34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)
Signed-off-by: Patrick McHardy <kaber at trash.net>

diff --git a/src/parser.y b/src/parser.y
index cc7e467..35a9dc8 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -534,7 +534,7 @@ table_block_alloc	:	/* empty */	{ $$ = table_alloc(); }
 			;
 
 table_block		:	/* empty */	{ $$ = $<table>-1; }
-			|	common_block	{ $$ = $<table>-1; }
+			|	table_block	common_block
 			|	table_block	stmt_seperator
 			|	table_block	table_line	stmt_seperator
 			{
@@ -555,7 +555,7 @@ chain_block_alloc	:	/* empty */	{ $$ = chain_alloc(NULL); }
 			;
 
 chain_block		:	/* empty */	{ $$ = $<chain>-1; }
-			|	common_block	{ $$ = $<chain>-1; }
+			|	chain_block	common_block
 	     		|	chain_block	stmt_seperator
 			|	chain_block	hook_spec	stmt_seperator
 			|	chain_block	rule		stmt_seperator



More information about the netfilter-cvslog mailing list