From: Daniel A. S. <st...@ic...> - 2004-03-17 13:13:10
|
On Thursday, Mar 18, 2004, at 00:07 Australia/Sydney, Benjamin Riefenstahl wrote: > "Daniel A. Steffen" <st...@ic...> writes: >> typedef enum { >> TCL_PLATFORM_UNIX, /* Any Unix-like OS. */ >> TCL_PLATFORM_MAC, /* MacOS. Only for enum backwards compat. */ >> TCL_PLATFORM_WINDOWS /* Any Microsoft Windows OS. */ >> } TclPlatformType; >> >> e.g. there is code in tclTest.c (TestgetplatformCmd) that relies on >> the numeric values of tclPlatform instead of comparing to values of >> the enum ;-( > > If there is code that relies on the numeric values, than I'd suggest > that the numeric values be noted in the enum definition. Which should > solve the problem at hand, too. true, but there may also be code that relies on the symbol TCL_PLATFORM_MAC being defined, so I'm not sure it's a good idea to remove it? Cheers, Daniel -- ** Daniel A. Steffen ** "And now for something completely ** Dept. of Mathematics ** different" Monty Python ** Macquarie University ** <mailto:st...@ma...> ** NSW 2109 Australia ** <http://www.maths.mq.edu.au/~steffen/> |