9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Ethan Grammatikidis <eekee57@fastmail.fm>
To: 9fans@9fans.net
Subject: Re: [9fans] C beautifier
Date: Thu, 22 Sep 2011 11:40:23 +0100	[thread overview]
Message-ID: <20110922114023.5b0a2683@kolari.ethans.dre.am> (raw)
In-Reply-To: <CA+N-5bZV2YsNu=dUU-gP3JY+4p5k4EbmJd-pu=Lrtq2++bt2cw@mail.gmail.com>

On Sun, 18 Sep 2011 22:05:24 +0200
Francisco J Ballesteros <nemo@lsub.org> wrote:

> Somehow indent has indented wrong some ifs
> (the code in the body is at the same tab level than the if).
> Perhaps I made a mistake. I'm not saying it doesn't work
> (I'm sorry if I did).
>
> but cb was just fine.

I've had indent fail on something I thought would be easily parsable.
All I remember is it got indentation wrong from a certain point up to
the end of the file, and simply removing a newline before a brace
nullified the error.

Somewhere I have a script which fed about a dozen options to indent to
get the style I wanted. It was a very clear style (unlike indent's
default) but I can't find it now. I suspect it's on my Zaurus and was
primarily intended to fit code to the 63-column xterm I prefered on
that device.



  reply	other threads:[~2011-09-22 10:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-18 18:08 Francisco J Ballesteros
2011-09-18 18:15 ` andrey mirtchovski
2011-09-18 18:19   ` Francisco J Ballesteros
2011-09-18 20:01 ` Steve Simon
2011-09-18 20:05   ` Francisco J Ballesteros
2011-09-22 10:40     ` Ethan Grammatikidis [this message]
     [not found] <CA+N-5bZcY7r+i+Gekhtbp_3X+a9sgy+4CAfd7-MMBThn5Pq3yQ@mail.gmail.c>
2011-09-18 18:11 ` erik quanstrom
2011-09-18 18:23   ` Francisco J Ballesteros
2011-09-18 18:32     ` Francisco J Ballesteros
2011-09-18 20:14   ` David Arnold

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=20110922114023.5b0a2683@kolari.ethans.dre.am \
    --to=eekee57@fastmail.fm \
    --cc=9fans@9fans.net \
    /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).