bug-bison
[Top][All Lists]
Advanced

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

Re: Bison-1.28 No Error Bug


From: Hans Aberg
Subject: Re: Bison-1.28 No Error Bug
Date: Tue, 3 Oct 2000 20:15:13 +0200

At 09.32 +0200 0-10-03, Akim Demaille wrote:
>Please, don't drop the CC to the lists.

OK. I'm not on this list, so I forgot about it.
>| you could write a single one
>|
>| void warn (char *fmt, ...)
>| {
>|     va_list args;
>|
>|     va_start(args, fmt);
>|     warn_banner();
>|     vfprintf(stderr, fmt, args);  */ Don't forget that little "v"! */
>|     fputc('\n', stderr);
>|     va_end(args);
>| }
>|
>| (I took it out of K&R, "CPL", p 174; I don't program C, just hack a little
>| bit once in a while. :-) )
>
>That's the approach advocated in the current beta.  It is still
>unsatisfying: there are too many such functions (see complain.[ch]).

For the port, I want as few as possible, because it's easier to feed them
into the IDE message display. In order to prevent mistakes with f(...)
arguments, one can first define the single warn() above, and then all the
other warnx wrapping around it.

  Hans Aberg





reply via email to

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