edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [Edbrowse-dev]  indenting
@ 2014-01-30 17:40 Karl Dahlke
  0 siblings, 0 replies; 4+ messages in thread
From: Karl Dahlke @ 2014-01-30 17:40 UTC (permalink / raw)
  To: Edbrowse-dev

well then ...
I will probably wait until the code is quiescent, which it isn't now,
but when everyone is leaving it alone I'll run all of it through kernel Lindent
and we'll go with that.
Maybe just before new version cutover.
No hurry.

Karl Dahlke

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [Edbrowse-dev] indenting
@ 2014-01-30 15:09 Karl Dahlke
  2014-01-30 15:24 ` Chris Brannon
  0 siblings, 1 reply; 4+ messages in thread
From: Karl Dahlke @ 2014-01-30 15:09 UTC (permalink / raw)
  To: Edbrowse-dev

I almost don't care, so if other people do that will win the day.
Would you prefer a different style of indenting?
I came up with this one over ten years ago, but now I
really don't like it, because of the mix of spaces and tabs.
Guess I was trying to prevent really long lines, so only indent by 4.
Well the way to prevent long lines is by programming better.
Linux kernel indents by tabs, by blocks of 8 spaces,
and all the braces and other styles I like too.
Would we be better off using their indent script,
or maybe some other script?
I just like being able to list a line and count tabs
and know the indent, like when I work in the kernel,
but edbrowse source doesn't work like that.
If you have kernel source look at scripts/Lindent.
Indenting by tabs is pretty much the standard.

Also I wonder if we should not run eb.h through such a script.
It's just externs and defines.
And now with the extern C { } around it,
everything is indented for no reason.
It's just a little awkward / confusing.

Karl Dahlke

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-01-30 17:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-30 17:40 [Edbrowse-dev] indenting Karl Dahlke
  -- strict thread matches above, loose matches on Subject: below --
2014-01-30 15:09 Karl Dahlke
2014-01-30 15:24 ` Chris Brannon
2014-01-30 16:09   ` Adam Thompson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).