Article View: comp.std.c
Article #4216Re: Maximum length of line of C code
From: Daniel Villeneuve
Date: Wed, 11 Oct 1995 12:01
Date: Wed, 11 Oct 1995 12:01
27 lines
1610 bytes
1610 bytes
In article <45fjo5$2gs@usenet.pa.dec.com> diamond@jrd.dec.com (Norman Diamond) writes: > From: diamond@jrd.dec.com (Norman Diamond) > > Now, I look at the wording of translation phase 2. It does not specify > that each backslash followed by a new-line character is deleted; it > specifies that each new-line character and an immediately preceding > backslash are deleted. This wording suggests that a backwards examination > is required, similar to detection of a preprocessing directive which > depends on examining any white space that immediately precedes a #. > Thus, it seems that the following four lines are spliced by TP2: > tok\\\ > > > en > After each splice is performed, a newline character is observed to be > immediately preceded by a backslash. I read that too in the Standard and I am inclined to agree. Here is a short list of what some other (assuming you may be one) compiler writers understood: HP PA-RISC - gcc : leaves two \\ after tok (version 2.6.3) HP PA-RISC - c89 : leaves two \\ after tok SUN - cc : removes all three \\\ and yields only one `token' --Daniel
Technical Details
Message-ID:
<DANIELV.95Oct11080143@crt0.crt>Path:
arc1-ca.pugleaf.net!feed.umontreal.ca!usenetReferences:
<44qg8v$s1m@ixnews2.ix.netcom.com> <45fjo5$2gs@usenet.pa.dec.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!feed.umontreal.ca!usenet From: danielv@crt0.crt (Daniel Villeneuve) Newsgroups: comp.std.c Subject: Re: Maximum length of line of C code Date: 11 Oct 1995 12:01:23 GMT Organization: Universite de Montreal Distribution: world Message-ID: <DANIELV.95Oct11080143@crt0.crt> References: <44qg8v$s1m@ixnews2.ix.netcom.com> <45fjo5$2gs@usenet.pa.dec.com> NNTP-Posting-Host: crt0.crt.umontreal.ca In-reply-to: diamond@jrd.dec.com's message of 11 Oct 1995 05:12:37 GMT