Module Name: src Committed By: rillig Date: Thu Mar 10 22:45:24 UTC 2022
Modified Files: src/share/misc: style Log Message: share/misc/style: clarify enum example code The only purpose of the enum example is to show that enum constants are written in uppercase. The previous code could be mistakenly interpreted as requiring each definition of an enum type to also define a global variable of that type, and to make the variable name the abbreviated type name. Even if the enum type were prefixed with 'typedef', choosing different names for the tag and the typedef would not be necessary. To avoid these possible misinterpretations above, remove the variable name from the declaration. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/share/misc/style Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.