Messages in this thread | | | From | Kenneth Aafløy <> | Subject | Coding style: mixed-case | Date | Wed, 6 Apr 2005 03:29:21 +0200 |
| |
Hi,
while reading Documentation/CodingStyle for the nth time, I realized that I had read some conflicting coding style in some patch posted to the linux-kernel mailing-list; in include/linux/page-flags.h, there is a lot of defines that are apparently frowned upon:
HOWEVER, while mixed-case names are frowned upon, descriptive names for global variables are a must. To call a global function "foo" is a shooting offense.
Are those an exception to the rule or would for example PF_LOCKED/pf_locked be a nice replacement for PageLocked?
Just wondering; with no intention to change code that I do not understand :)
Kenneth - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |