From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Loeliger Subject: Re: Use yylloc instead of yyloc Date: Wed, 11 Nov 2009 21:42:59 -0600 Message-ID: References: <20091112001404.GI3235@yookeroo.seuss> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-reply-to: <20091112001404.GI3235-787xzQ0H9iRg7VrjXcPTGA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: David Gibson Cc: Lukasz Wojcik , devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org List-Id: devicetree@vger.kernel.org > 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 > > 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