Use yylloc instead of yyloc
yylloc is the correct way to get token positioning information. yyloc is a bison internal variable that only works by accident. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
committed by
Jon Loeliger
parent
c623fe5c21
commit
350c9cce9e
@@ -175,7 +175,7 @@ propdata:
|
|||||||
|
|
||||||
if ($6 != 0)
|
if ($6 != 0)
|
||||||
if (fseek(file->file, $6, SEEK_SET) != 0)
|
if (fseek(file->file, $6, SEEK_SET) != 0)
|
||||||
srcpos_error(&yyloc,
|
srcpos_error(&yylloc,
|
||||||
"Couldn't seek to offset %llu in \"%s\": %s",
|
"Couldn't seek to offset %llu in \"%s\": %s",
|
||||||
(unsigned long long)$6,
|
(unsigned long long)$6,
|
||||||
$4.val,
|
$4.val,
|
||||||
|
|||||||
Reference in New Issue
Block a user