edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Karl Dahlke <eklhad@comcast.net>
To: Edbrowse-dev@lists.the-brannons.com
Subject: [Edbrowse-dev] indenting
Date: Thu, 30 Jan 2014 10:09:01 -0500	[thread overview]
Message-ID: <20140030100901.eklhad@comcast.net> (raw)

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

             reply	other threads:[~2014-01-30 15:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-30 15:09 Karl Dahlke [this message]
2014-01-30 15:24 ` Chris Brannon
2014-01-30 16:09   ` Adam Thompson
2014-01-30 17:40 Karl Dahlke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140030100901.eklhad@comcast.net \
    --to=eklhad@comcast.net \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).