From: Nigel N. <nN...@au...> - 2004-06-02 03:04:08
|
Another vote in favour of dropping K&R syntax. I have a wxWidgets demo that builds Gnuplot 4.x as a library, and drives it programmatically. But before adding another set of #defines to the code, it would be good if the config and pre-processor stuff could be cleaned up to simplify the next few years of Gnuplot evolution. Nigel PS: congrats to HBB on PhD! -----Original Message----- From: Allin Cottrell [mailto:cot...@wf...] Sent: Wednesday, 2 June 2004 12:35 PM To: gnuplot-beta Subject: Re: K&R C (was Re: Bugs in enhanced mode) On Tue, 1 Jun 2004, Daniel J Sebald wrote: > Would this be a tolerable hack? Define a special type in some header > for char's as function arguments > > /* Throwback to K&R */ > #ifdef __STDC__ > #define ACHAR char > #else > #define ACHAR int > #endif I strongly support the suggestion put forward by Hans-Berhard a few days ago, namely that support for 'K&R' should be dropped. I'm not aware of any other serious software package that insists on supporting pre-1989 C compilers. The effect is simply to complicate and obfuscate the gnuplot code. I'm aware that I don't have much standing in this debate because I have not contributed much to gnuplot. On the other hand, I'd be more inclined to contribute were it not for the weird archaisms in the gnuplot code base. How many people are there in the world who refuse to use an ISO/ANSI C compiler, but who want to be able to compile the latest and greatest gnuplot? Allin Cottrell ********************************************************************************** This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender. Keep up to date with what's happening in Australian sport. Visit http://www.ausport.gov.au ********************************************************************************** |