RE: [PATCH] 2.5 Documentation/CodingStyle ANSI C function declarations.

From: Riley Williams (Riley@Williams.Name)
Date: Fri May 30 2003 - 18:13:10 EST


Hi Linus.

> The motivation for doing the ANSI-fication is just that there
> is now a sanity checker tool that will complain loudly about
> bad typing, and since I wrote it and I hate old-style K&R
> sources, it doesn't parse them.

Probably the simplest solution is to make the said tool recognise
a line like...

#pragma KandR

...and have it abort any file where it finds that line with some
sort of warning, perhaps along the lines of...

SanityCheck: Found K&R pragma, ignoring kernel/foobar.c

...or something similar. It would then be simply a case of adding
the said line near the top of whichever source files are still in
K&R format.

Best wishes from Riley.
---
* Nothing as pretty as a smile, nothing as ugly as a frown.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.484 / Virus Database: 282 - Release Date: 27-May-2003

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/