From f2be4af9094d47dbd9c028e02ceb8b9d16cd4c02 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 3 May 2018 12:11:32 +0200 Subject: src: add chain_spec Store location object in handle to improve error reporting. Signed-off-by: Pablo Neira Ayuso --- src/parser_bison.y | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/parser_bison.y') diff --git a/src/parser_bison.y b/src/parser_bison.y index 95a42d3e..b5229ae1 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -1861,7 +1861,8 @@ tableid_spec : family_spec HANDLE NUM chain_spec : table_spec identifier { $$ = $1; - $$.chain = $2; + $$.chain.name = $2; + $$.chain.location = @2; } ; @@ -1876,7 +1877,8 @@ chainid_spec : table_spec HANDLE NUM chain_identifier : identifier { memset(&$$, 0, sizeof($$)); - $$.chain = $1; + $$.chain.name = $1; + $$.chain.location = @1; } ; -- cgit v1.2.3