From b2a76466597b53469a003b56e61154171a4e63f9 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 3 May 2018 12:49:39 +0200 Subject: src: add obj_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 28aa6cc1..eed60008 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -1924,7 +1924,8 @@ flowtable_identifier : identifier obj_spec : table_spec identifier { $$ = $1; - $$.obj = $2; + $$.obj.name = $2; + $$.obj.location = @2; } ; @@ -1939,7 +1940,8 @@ objid_spec : table_spec HANDLE NUM obj_identifier : identifier { memset(&$$, 0, sizeof($$)); - $$.obj = $1; + $$.obj.name = $1; + $$.obj.location = @1; } ; -- cgit v1.2.3