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>
main
David Gibson 2009-11-12 11:14:04 +11:00 committed by Jon Loeliger
parent c623fe5c21
commit 350c9cce9e
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ propdata:

if ($6 != 0)
if (fseek(file->file, $6, SEEK_SET) != 0)
srcpos_error(&yyloc,
srcpos_error(&yylloc,
"Couldn't seek to offset %llu in \"%s\": %s",
(unsigned long long)$6,
$4.val,