bug-bison
[Top][All Lists]
Advanced

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

Bison-1.28 No Error Bug


From: Hans Aberg
Subject: Bison-1.28 No Error Bug
Date: Fri, 29 Sep 2000 23:25:53 +0200

Using the compile Bison-1.28 for MacOS using the Metrowerks CW Pro 5
C-compiler, I have noticed it Bison produces some funny error messages. For
example, if Bison cannot find the startup file "<name>.y", one gets the
somewhat confusing error message
    Bison: <name>.y: No Error

The reason, in this case, is that tryopen() uses perror() in connection
with a function fprintf() that does not set errno. When the program starts,
errno is set to 0, meaning "No Error", and remains so until a function
alters it.

  Hans Aberg





reply via email to

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