From: Hans-Bernhard B. <br...@ph...> - 2004-04-15 13:39:00
|
On Thu, 15 Apr 2004, Lars Hecking wrote: > > > > cpp analysis shows that TBOOLEAN gets defined to _Bool, which in turn is > > > typedef'd to unsigned char. > > > > I revived my access to a Tru64 box, and saw the same thing. The weird > > thing is that if I change the affected function definitions into > > ANSI style, the problem goes away. > > ANSI and K&R compilers differ in how they handle arument promotions. Sure. But the case at hand is between an ANSI compiler and itself. IIRC, the idea was that the presence of a prototype would effectively eliminate the differences between ANSI and K&R function argument definitions. > > That would seem to go against the grain of the whole way gnuplot handles > > pre-ANSI vs. ANSI C (optional ANSI prototype declarations, but K&R > > definitions), which seems to be accepted by just about every other > > compiler on the planet. > > In fact, half or so of the gnuplot sources already have ANSI function > definitions. Should that many have slipped under my radar? > At this point, we should switch to ANSI/ISO C throughout the source > (maybe not just now for the new release). Right. That should be the first global change *after* the release. -- Hans-Bernhard Broeker (br...@ph...) Even if all the snow were burnt, ashes would remain. |