[PATCH] #endif comment fixes

Pankov Pavel pankov_p at mail.ru
Sat Nov 15 09:56:18 PST 2008


Hello.

According to style(9), there can be a comment added to #endif, telling
the reader about the corresponding #if* condition. This information
isn't used by any program; it's just to save some time for humans,
reading the code. And, as it isn't checked, these comments have
accumulated many errors. Mainly, it's typos, copy-paste bugs, and file
rename leftovers. I have prepared a patch to fix some of them in the
tree. I clearly understand that the patch cannot be committed as is,
because of touched files are maintained outside of FreeBSD source tree.
But maybe respective maintainers will be able to review my patch and
commit or submit fixes upstream. CVS diff against -CURRENT is available
from http://files.pankov.pp.ru/freebsd/endif-comments-fix.diff.bz2 (~ 14
KB).

Thank you.


More information about the freebsd-current mailing list