🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #555

indent bug

#555
From: Colin Manning
Date: Mon, 20 Nov 1989 15:46
40 lines
1537 bytes
I have been trying to get GNU indent working on a 386 box running
SCO Xenix 2.3.1, and have experienced problems getting it to
format the following C code with the -gnu option:


func(a)
char *a;
{
	if (strcmp(a,"fred") == 0)
	{
		printf (a);
	}
	else  /* comment   */
	{
		printf ("a is not fred");
	}
}

Indent seems to get a bit upset at the comment after the else.  It normally
hangs and has to be interrupted.  Experimentation indicates that it is the
requested brace formatting style that causes the problem.

Doing 'indent -version' gives:
	GNU indent 1.0.  Based on Berkeley indent 5.11 (9/15/88).

Anyone got any ideas ?

Thanks in advance, 

- Colin.



-- 
-----------------------------------------------------------------------
| colin@tenset.uucp or        | Post: Tenset Technologies Limited,    |
|  ..!ukc!acorn!tenset!colin  |       Norfolk House,                  |
| Phone: +44 223 328886       |       301 Histon Road,                |
| Fax:   +44 223 460929       |       Cambridge CB4 3NF, UK.          |
-----------------------------------------------------------------------
Technical Details
Message-ID: <188@tenset.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!eru!luth!sunic!mcsun!ukc!acorn!tenset!colin

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!eru!luth!sunic!mcsun!ukc!acorn!tenset!colin
From: colin@tenset.UUCP (Colin Manning)
Newsgroups: gnu.utils.bug
Subject: indent bug
Message-ID: <188@tenset.UUCP>
Date: 20 Nov 89 15:46:42 GMT
Reply-To: colin@tenset.UUCP (Colin Manning)
Organization: Tenset Technologies Limited, Cambridge, United Kingdom
Lines: 40