bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 06/11] build: include <config.h> from lib/yyerror.c


From: Paul Eggert
Subject: Re: [PATCH 06/11] build: include <config.h> from lib/yyerror.c
Date: Mon, 23 Jan 2012 08:48:32 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0

On 01/23/2012 03:14 AM, Akim Demaille wrote:
> Actually, for mhistorical reason, yyerror is really expected
> to return an int (by default, which is the case here).  I guess
> it dates back to the good ol' time o' C when not declaring
> was fine, and meant int.

Yes, that's right.  A while ago I went through the documentation
to try to make it clearer that it's up to the user to declare
yyerror, and the user can declare yyerror with any signature
they like as long as 'yyerror ("syntax error");' works, but
historically there was no declaration and in C89 or earlier
this means yyerror returns int.

Nowadays only toys use -ly so it really doesn't matter how
efficient -ly is, so long as it works.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]