From: Lars H. <lhe...@us...> - 2004-04-15 13:26:30
|
> > 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. > 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. At this point, we should switch to ANSI/ISO C throughout the source (maybe not just now for the new release). Not sure how many K&R compilers we need to support, but SunOS' cc worked quite well with the supplied ansi2knr, last time I checked (probably some time last year). |