mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* proposed patch:  standardize white space for "#endif /* __KERNEL__ */" directives
@ 2006-12-02 13:32 Robert P. J. Day
  0 siblings, 0 replies; only message in thread
From: Robert P. J. Day @ 2006-12-02 13:32 UTC (permalink / raw)
  To: Linux kernel mailing list


  i've got a one-line perl command that runs through include/linux and
standardizes all of the "#endif" directives for "__KERNEL__" into a
single variant

#endif /* __KERNEL__ */

where all of the whitespace bits above are a single space and nothing
more.

  while this is clearly just aesthetic and involves only whitespace
transformation, it was handy when i was messing around with what
happened during "make headers_install" as i was trying to match the
opening and closing __KERNEL__ directives, and i had to accommodate
that some of those #endif directives had a space, and others a tab, or
multiple spaces, or multiple tabs, etc.  grrrrrrrrrr.

  is it worth submitting this kind of whitespace-related patch?
obviously, it can be done for the entire tree (perhaps in a multi-part
patch) or just include/linux where i was using it.

  if that goes in, a follow-up patch would add any missing __KERNEL__
comments to the corresponding #endif directives so that, visually, it
would be far easier to see the nesting.

  thoughts?  or a waste of time?

rday

p.s.  there is the occasional

#endif    // __KERNEL__

directive as well, but that's obviously just as easy to handle.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-12-02 13:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-02 13:32 proposed patch: standardize white space for "#endif /* __KERNEL__ */" directives Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®