Re: [9fans] C beautifier

2011-09-22 Thread Ethan Grammatikidis
On Sun, 18 Sep 2011 22:05:24 +0200 Francisco J Ballesteros 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 ind

Re: [9fans] C beautifier

2011-09-18 Thread David Arnold
On Sun Sep 18 14:10:06 EDT 2011, n...@lsub.org wrote: > anyone is using a C beautifier in Plan 9? > I mean, other than gnu indent, which I tried and does not > work quite right for me. uncrustify is fairly flexible, but takes some work up front to describe your desired output style. http://uncr

Re: [9fans] C beautifier

2011-09-18 Thread Francisco J Ballesteros
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. On Sun, Sep 18, 2011 at 10:01 PM, Steve Simon wrote: > I have an indent port in my contri

Re: [9fans] C beautifier

2011-09-18 Thread Steve Simon
I have an indent port in my contrib (though you say you don't like it), and plan9 has cb(1). what don't you like about indent? I use it with erik's bcmt which replaces c++ style comments with C ones, a carfully tailored proto file, and this: sed 's/\) {/){/ . This gives me pretty much plan9-sty

Re: [9fans] C beautifier

2011-09-18 Thread Francisco J Ballesteros
As I said, I should learn to read man pages. cb -s was exactly what I was looking for. thanks again. On Sun, Sep 18, 2011 at 8:23 PM, Francisco J Ballesteros wrote: > I was looking for something capable of unifying say > > if(...){ > }else{ > } > > and > > if(...) > { > } > else > { > } > > into

Re: [9fans] C beautifier

2011-09-18 Thread Francisco J Ballesteros
I was looking for something capable of unifying say if(...){ }else{ } and if(...) { } else { } into a single style. But it might do. thanks again. On Sun, Sep 18, 2011 at 8:11 PM, erik quanstrom wrote: > On Sun Sep 18 14:10:06 EDT 2011, n...@lsub.org wrote: >> Hi, >> >> anyone is using a C be

Re: [9fans] C beautifier

2011-09-18 Thread erik quanstrom
On Sun Sep 18 14:10:06 EDT 2011, n...@lsub.org wrote: > Hi, > > anyone is using a C beautifier in Plan 9? > I mean, other than gnu indent, which I tried and does not > work quite right for me. cb has worked for me, even on windows code. - erik

Re: [9fans] C beautifier

2011-09-18 Thread Francisco J Ballesteros
I'll have to learn to search and read man pages :) thanks! On Sun, Sep 18, 2011 at 8:15 PM, andrey mirtchovski wrote: > /386/bin/cb? > >

Re: [9fans] C beautifier

2011-09-18 Thread andrey mirtchovski
/386/bin/cb?

[9fans] C beautifier

2011-09-18 Thread Francisco J Ballesteros
Hi, anyone is using a C beautifier in Plan 9? I mean, other than gnu indent, which I tried and does not work quite right for me. thanks