🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4172

Re: Maximum length of line of C code

#4172
From: Nick Maclaren
Date: Wed, 04 Oct 1995 12:48
28 lines
1565 bytes
In article <44t7ht$ms2@nyx10.cs.du.edu>, colin@nyx10.cs.du.edu (Colin Plumb) writes:
|> In article <44qg8v$s1m@ixnews2.ix.netcom.com>,
|> Richard Berthold <berthold@ix.netcom.com> wrote:
|> 
|> > Must all compilers support \ as a line continuation character?
|> 
|> By the standard, yes.

However, be warned that trailing spaces and tabs disable it as a line
continuation character.  I got caught by an editor that inserted such
things and then denied their existence :-(  Also, note that it possible
to have two legal programs that differ only in the presence or absence
of trailings spaces ....

And thirdly and most horribly, note that the standard does not define
how non-trivial end-of-line indicators are represented.  For example,
does the concept end-of-line-with-form-feed translate into '\f\n' or
'\n\f'?  The former is implied by the relevant character set standards
(i.e. ASCII and its successors), and the latter is implied by ANSI C.

Yuck.


Nick Maclaren,
University of Cambridge Computer Laboratory,
New Museums Site, Pembroke Street, Cambridge CB2 3QG, England.
Email:  nmm1@cam.ac.uk
Tel.:  +44 1223 334761    Fax:  +44 1223 334679
Technical Details
Message-ID: <44tvqb$9pr@lyra.csx.cam.ac.uk>
Path: arc1-ca.pugleaf.net!lyra.csx.cam.ac.uk!nmm1
References: <44qg8v$s1m@ixnews2.ix.netcom.com> <44t7ht$ms2@nyx10.cs.du.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!lyra.csx.cam.ac.uk!nmm1
From: nmm1@cus.cam.ac.uk (Nick Maclaren)
Newsgroups: comp.std.c
Subject: Re: Maximum length of line of C code
Date: 4 Oct 1995 12:48:11 GMT
Organization: University of Cambridge, England
Message-ID: <44tvqb$9pr@lyra.csx.cam.ac.uk>
References: <44qg8v$s1m@ixnews2.ix.netcom.com> <44t7ht$ms2@nyx10.cs.du.edu>
NNTP-Posting-Host: ursa.cus.cam.ac.uk