🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2179

Re: Re: C-formattors (problems with very long lines)

#2179
From: Alan P Barrett
Date: Thu, 01 Oct 1992 08:27
15 lines
1196 bytes
In article <1992Sep30.092907.28988@olymp.informatik.uni-bonn.de>,
hermann@uran.informatik.uni-bonn.de (Hermann Stamm) writes:
> Below you can find the little prog I am using. It detects both,
> if a ; is inside "..." and inside ' ' . If so, it doesn't insert
> the '\n' after the ; otherwise it does.

> The question now is, does the below program correctly transforms
> any compilable C-source into also compilable C-source.

No.  You also have to worry about preprocessor directives, in which
you would have to use <backslash><newline> instead of just <newline>.

--apb
Alan Barrett, Dept. of Electronic Eng., Univ. of Natal, Durban, South Africa
RFC822: barrett@ee.und.ac.za                    Bang: m2xenix!undeed!barrett
Technical Details
Message-ID: <1aecppINN25t@daisy.ee.und.ac.za>
Path: arc1-ca.pugleaf.net!sparky!uunet!psgrain!ee.und.ac.za!not-for-mail
References: <1992Sep30.092907.28988@olymp.informatik.uni-bonn.de>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!psgrain!ee.und.ac.za!not-for-mail
From: barrett@daisy.ee.und.ac.za (Alan P Barrett)
Newsgroups: comp.std.c
Subject: Re: Re: C-formattors (problems with very long lines)
Date: 1 Oct 1992 10:27:37 +0200
Organization: Dept. Elec. Eng., Univ. Natal, Durban, S. Africa
Lines: 15
Message-ID: <1aecppINN25t@daisy.ee.und.ac.za>
References: <1992Sep30.092907.28988@olymp.informatik.uni-bonn.de>
NNTP-Posting-Host: daisy.ee.und.ac.za