Article View: comp.std.c
Article #4184Re: Maximum length of line of C code
From: Christopher R. Volpe
Date: Thu, 05 Oct 1995 13:58
Date: Thu, 05 Oct 1995 13:58
31 lines
1392 bytes
1392 bytes
In article <44t7ht$ms2@nyx10.cs.du.edu>, colin@nyx10.cs.du.edu (Colin Plumb) writes:
>
>> Is it always a continuation even if preceded by another \?
>
>No. If preceded by an *odd* number of backslashes, it's the second
>part of a \\ escape, which corresponds to \ in the middle of a line.
>(It better be inside a string literal or it's not valid C.)
Wrong. backslash-newline annihilation occurs in TP2, whereas double backslash
(which, as you correctly noted can only be part of a string literal or
character constant) is processed as part pp-token decomposition, which occurs
in TP3.
>
>For example, I cannot split:
>
>printf("Hello, world!\n");
>
>into:
>
>printf("Hello, world!\\
>n");
>
Yes, you can.
--
Chris Volpe Phone: (518) 387-7766 (Dial Comm 8*833
GE Corporate R&D Fax: (518) 387-6560
PO Box 8, Schenectady, NY 12301 Email: volpecr@crd.ge.com
Technical Details
Message-ID:
<450o9m$jud@rdsunx.crd.ge.com>Path:
arc1-ca.pugleaf.net!bart.crd.ge.com!volpeReferences:
<44qg8v$s1m@ixnews2.ix.netcom.com> <44t7ht$ms2@nyx10.cs.du.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!bart.crd.ge.com!volpe From: volpe@bart.crd.ge.com (Christopher R. Volpe) Newsgroups: comp.std.c Subject: Re: Maximum length of line of C code Date: 5 Oct 1995 13:58:14 GMT Organization: GE Corporate Research & Development Sender: volpe@bart (Christopher R. Volpe) Distribution: world Message-ID: <450o9m$jud@rdsunx.crd.ge.com> References: <44qg8v$s1m@ixnews2.ix.netcom.com> <44t7ht$ms2@nyx10.cs.du.edu> Reply-To: volpe@ausable.crd.ge.com NNTP-Posting-Host: bart.crd.ge.com