Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for May 23, 2013
An "enum" for Python 3
An unexpected perf feature
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
One could always maintain a mapping between id's that are the same. But yeah, that probably
isn't much of an improvement.
A kernel message catalog
Posted Aug 8, 2008 20:10 UTC (Fri) by giraffedata (subscriber, #1954)
Of all the code changes that break the documentation, grammar and typo corrections will be an insignificant minority.
There's no need to do something fancy like a hash -- just use the literal format string as the identifier. It's already in the documentation code anyway.
Another idea, more searchable than actual text but less of a development PITA than a number: an alphanumeric message ID. Have the macro turn it into a name that would make the compilation fail if it isn't unique.
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds