Use yylloc instead of yyloc

Jon Loeliger jdl at jdl.com
Thu Nov 12 14:42:59 EST 2009


> Jon, fix for the typo the FreeBSD folks noticed.  Please apply.
> 
> 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 at gibson.dropbear.id.au>
> 
> Index: dtc/dtc-parser.y
> ===================================================================
> --- dtc.orig/dtc-parser.y	2009-11-12 11:11:15.000000000 +1100
> +++ dtc/dtc-parser.y	2009-11-12 11:11:20.000000000 +1100
> @@ -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,
> 
> 

Applied.

jdl


More information about the devicetree-discuss mailing list