On Sun, 26 Nov 2000, Elmer Joandi wrote:
>
> Kernel has become so big that it really needs universal debugging macros
> instead of comments. Comments are waste of brain&fingerpower, if the same
> can be explained by long variable names and debug macros.
>
> static Subsystem_module_LocalVariableForThisPurpose;
>
> int Subsytem_module_function_this_and_that(){
> DEBUG_ASSERT( Subsystem_module_LocalVariableForThisPurpose == 0 );
> DEBUG_ASSERT(MOST_OF_TIME,FS_AREA,MYFS_MODULE, somethingaboutIndodes->node !=
>NULL )
> }
I would suggest you to read through the following book and files:
* Kernighan & Pike, "The Practice of Programming"
* Documentation/CodingStyle
* drivers/net/aironet4500_proc.c
and consider, erm, discrepancies. On the second thought, reading K&R
might also be useful. IOW, no offense, but your C is bad beyond belief.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/
- Re: [PATCH] removal of "... bert hubert
- Re: [PATCH] removal of "... Pavel Machek
- Re: [PATCH] removal of "stat... Rogier Wolff
- Re: [PATCH] removal of "static fo... Philipp Rumpf
- Re: [PATCH] removal of "static fo... Georg Nikodym
- Re: [PATCH] removal of "static fo... H. Peter Anvin
- Re: [PATCH] removal of "stat... Kai Henningsen
- Re: [PATCH] removal of "static foo = 0&qu... Werner Almesberger
- Re: [PATCH] removal of "static foo = 0" Adam J. Richter
- Re: [PATCH] removal of "static foo = 0" Elmer Joandi
- Re: [PATCH] removal of "static foo = 0" Alexander Viro
- Re: [PATCH] removal of "static foo = 0&qu... Elmer Joandi
- Re: [PATCH] removal of "static foo = 0" Rogier Wolff
- Universal debug macros. Elmer Joandi
- Re: Universal debug macros. Rogier Wolff
- Re: Universal debug macros. Elmer Joandi
- Re: Universal debug macros. H. Peter Anvin
- Re: Universal debug macros. Michael Meissner
- Re: Universal debug macros. Chmouel Boudjnah
- Re: Universal debug macros. H. Peter Anvin
- Re: Universal debug macros. Chmouel Boudjnah

