Oddities in ANSI 3rd review

Karl Heuer karl at haddock.ISC.COM
Tue Aug 9 04:05:19 AEST 1988


[karl at haddock (Karl Heuer) writes that "#define tm_usec __tm_extended_usec" as
a conditionally defined macro would do the job]

[guy at gorodish.Sun.COM (Guy Harris) notes the alternative solution
	struct tm { ...
	#ifdef __EXTENSIONS__
		long	tm_usec;
	#else
		long	__tm_filler_1;
	#endif
	};
but says that this pollutes the namespace with "__tm_filler_N" names.]

Yes, but it's polluting the *implemention's* namespace, not the user's.  The
implementor need only check that the pattern "__tm_*" is not on the (finite)
list of patterns already in use by the implementation.  From the user's
viewpoint, this extension (either yours or mine) is harmless.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list