namespace rules (Was: Re: sbitmap cleanups)

John Marshall john_w_marshall@palm.com
Wed Apr 12 18:11:00 GMT 2000


Zack Weinberg wrote:
> Unless someone's changed the rules on me, names starting with an
> underscore and a lowercase letter are legitimate in user programs.

In some contexts.  While I'm flogging a trivial horse:  after forbidding
^_[A-Z_] everywhere, ISO C section 7.1.3 goes on to say:

	All identifiers that begin with an underscore are always
	reserved for use as identifiers with file scope in both
	the ordinary identifier and tag name spaces.

It seems to me that that would apply to the names of global functions.

    John


More information about the Gcc-patches mailing list