TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Paul Edwards
from: Joshua Marshall
date: 1996-04-15 09:27:08
subject: Re: C beautifier programs

Hello Paul,
 In a message dated 31 Mar 96 you wrote to david nugent :

 JM>> Does anyone know of a good C beautifier program?

 dn>> Sure, plenty of them. About the best and most configurable that is 
 dn>> available is GNU indent.

 PE> The problem with GNU indent, at least the version I have, is that you
 PE> (or at least I) can't get it to generate code without tabs.

A problem I had with GNU indent is that it stuffed up the formatting of a
switch statement that was nested.

It wouldn't indent the case keywords in the second switch, i.e.

switch (blah)
{
  case 1:
    switch (blah2)
    {
    case 1: /* this line not indented correctly */
    }
}

Looks like I'll just have to get mine working better (It's almost there...)

                                     FidoNet   3:640/452.35
Josh Marshall                        RIPNet  154:474/100.35
Member TEAM AMIGA                    AmigaNet 41:400/452.35

... Next time it could be me on the scaffolding. --Bart Simpson.
--- Mail Manager 1.1x/p
* Origin: It's rude to Point (3:640/452.35{at}fidonet)
SEEN-BY: 50/99 78/0 620/243 623/630 640/151 201 206 216 217 222 230 238 247
SEEN-BY: 640/281 305 309 370 375 452 452 531 820 821 822 823 890 937 690/660
SEEN-BY: 711/401 409 410 413 430 808 809 932 934 712/515 713/888 714/906
SEEN-BY: 800/1 7877/2809
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.