> Date: Mon, 29 Jul 2013 15:21:05 +0100 > From: Daniel Stone <[email protected]> > > Hi, > > On 29 July 2013 14:55, Mark Kettenis <[email protected]> wrote: > > C99, 7.1.3 Reserved identifiers: > > > > -- All identifiers that begin with an underscore and either an > > uppercase letter or another underscore are always reserved for > > any use. > > > > -- All identifiers that begin with an underscore are always reserved > > for use as identifiers with file scope in both the ordinary and > > tag name spaces. > > > > > > ... If the program declares or defines an identifier in a context > > in which it is reserved (other than as allowed by 7.1.4), or > > defines a reserved identifier as a macro name, the behavior is > > undefined. > > > > POSIX has similar provisions. > > Ah yes, you're right: I'd forgotten about the uppercase rule. A dumb > rule, but a rule nonetheless. The further provision is that you're > not allowed to use anything beginning with an underscore at all in the > global namespace. > > So, _deviceOn would be fine here.
No it wouldn't, since the function in question is declared/defined with file scope. The fact that it is declared as static doesn't matter here. It would be ok to use _deviceOn as local variable name though. _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
