Article View: comp.lang.c.moderated
Article #2656Re: Compiling DOS source on Unix
From: Norm Dresner
Date: Tue, 16 Feb 1999 00:00
Date: Tue, 16 Feb 1999 00:00
39 lines
2174 bytes
2174 bytes
Could you do it by explicitly defining the CR to be null? A CR is really nothing more than a ^M so something like #define ^M where you insert the control-M into the file in an editor that lets you insert arbitrary control characters. Norm Ketil Z Malde <ketil@ii.uib.no> wrote in article <clcm-19990215-0011@plethora.net>... > > Okay, I give up. > > I've been trawling through websites, FAQs and Info documentation, to > no avail. > > The problem is as follows: > > I have a bunch of sources that were written on PCs, thus with CRLF > line termination. I want to compile them on a Unix system, or > specifically, with GCC on Linux, which uses LF line termination. > > Now all this is just fine and dandy, except some of the sources > contain \CRLF line continuation, which GCC interprets as a stray \CR > at the end of the line, and consequentially, crash and burn. > > I've been unsuccessfully toying with macro defining the problem away, > and I've been searching for cpp options to inhibit this - I'd rather > not mess up the original sources. Surely, somebody must have had this > problem before, and solved it somehow? > > -kzm > -- > If I haven't seen further, it is by standing in the footprints of giants > -- > comp.lang.c.moderated - clcm@plethora.net > -- comp.lang.c.moderated - clcm@plethora.net
Technical Details
Message-ID:
<clcm-19990216-0006@plethora.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<clcm-19990215-0011@plethora.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 100850,cf2e8be01827b0a6 X-Google-Attributes: gid100850,public X-Google-Thread: f65d0,cf2e8be01827b0a6 X-Google-Attributes: gidf65d0,public From: "Norm Dresner" <ndrez@worldnet.att.net> Subject: Re: Compiling DOS source on Unix Date: 1999/02/16 Message-ID: <clcm-19990216-0006@plethora.net> X-Deja-AN: 445037648 X-Nntp-posting-host: 155.104.234.138 Sender: news%mother@mddns.md.essd.northgrum.com Approved: clc@plethora.net References: <clcm-19990215-0011@plethora.net> X-Trace: ptah.visi.com 919193554 205.166.146.5 (Tue, 16 Feb 1999 13:32:34 CDT) Organization: Northrop Grumman Corp. NNTP-Posting-Date: Tue, 16 Feb 1999 13:32:34 CDT Newsgroups: comp.lang.c.moderated,gnu.gcc Originator: clcm@plethora.net (Comp Lang C'Moderated)