Re: [DTC PATCH 1/2] Add yyerrorf() for formatted error messages.

2007-12-21 Thread David Gibson
On Fri, Dec 21, 2007 at 03:28:56PM -0600, Scott Wood wrote: > On Fri, Dec 21, 2007 at 11:04:39AM +1100, David Gibson wrote: > > On Thu, Dec 20, 2007 at 10:48:23AM -0600, Scott Wood wrote: > > > Signed-off-by: Scott Wood <[EMAIL PROTECTED]> > > > > No need for a new function. If yyerror() is defin

Re: [DTC PATCH 1/2] Add yyerrorf() for formatted error messages.

2007-12-21 Thread Scott Wood
On Fri, Dec 21, 2007 at 11:04:39AM +1100, David Gibson wrote: > On Thu, Dec 20, 2007 at 10:48:23AM -0600, Scott Wood wrote: > > Signed-off-by: Scott Wood <[EMAIL PROTECTED]> > > No need for a new function. If yyerror() is defined as a varargs > function it's still compatible with bison's built-in

Re: [DTC PATCH 1/2] Add yyerrorf() for formatted error messages.

2007-12-20 Thread David Gibson
On Thu, Dec 20, 2007 at 10:48:23AM -0600, Scott Wood wrote: > Signed-off-by: Scott Wood <[EMAIL PROTECTED]> No need for a new function. If yyerror() is defined as a varargs function it's still compatible with bison's built-in usage. Oh, and while you're at it, you can kill off the bogus prototyp

[DTC PATCH 1/2] Add yyerrorf() for formatted error messages.

2007-12-20 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- dtc-parser.y | 16 srcpos.h |1 + 2 files changed, 17 insertions(+), 0 deletions(-) diff --git a/dtc-parser.y b/dtc-parser.y index 002ea7f..4a0181d 100644 --- a/dtc-parser.y +++ b/dtc-parser.y @@ -318,6 +318,22 @@ void y