Re: Typechecking integral types, retaining most access.

2002-08-22 Thread Walter Briscoe
In article [EMAIL PROTECTED] of Wed, 21 Aug 2002 10:19:27 in , David Evans [EMAIL PROTECTED] writes You could fake this by making them enum types: # ifdef S_SPLINT_S typedef enum { S_JUNK1 } seconds; typedef enum { S_JUNK2 } minutes; # else typedef int seconds; typedef int minutes; # endif

Re: Typechecking integral types, retaining most access.

2002-08-21 Thread David Evans
You could fake this by making them enum types: # ifdef S_SPLINT_S typedef enum { S_JUNK1 } seconds; typedef enum { S_JUNK2 } minutes; # else typedef int seconds; typedef int minutes; # endif If you used the -enumint flag, then you'll get the warnings you want for this. --- Dave On Wed, 21