www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/08/23/07:45:44

From: Simon Marchese <simondotmarchese AT btinternet DOT com>
Newsgroups: comp.os.msdos.djgpp,gnu.gcc.help
Subject: Re: Preprocessor and empty lines
Date: Thu, 23 Aug 2001 12:33:11 +0100
Organization: BT Internet
Lines: 42
Message-ID: <3B84E9F7.5DEA0BE4@btinternet.com>
References: <3B84B254 DOT C44B8D1B AT bigfoot DOT com>
NNTP-Posting-Host: host213-122-166-125.btinternet.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.7 [en] (Win95; I)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Well, you could change the preprocessor - but why not just pipe the output
file through "tr -s '\n'" instead?

Alex Vinokur wrote:

> ===========================================
> gcc version 2.95.3 20010315/djgpp (release)
> Windows98
> ===========================================
>
> I would like preprocessor not to insert empty lines to generated files.
>
> Here is an example.
>
> ------ File xxx.1 ------
> #define AAA 1
> #define BBB 2
> #define CCC 3
> ------------------------
>
> ------ File xxx.2 ------
> #include xxx.1
> ------------------------
>
> %gcc -P -E -x c -o xxx.3 xxx.2
>
> ------ File xxx.3 ------
>
> ------------------------
> Note. File xxx.3 contains 4 empty lines.
>
> Is there any possibility to avoid inserting empty lines in example
> above?
>
> --
>   =====================
>   Alex Vinokur
>     mailto:alexvn AT bigfoot DOT com
>     http://up.to/alexvn
>     http://go.to/alexv_math
>   =====================

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019