public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Keeping blank lines in C++ preproccessor output
@ 2012-01-07  6:49 galexander2
  2012-01-08  1:02 ` Ian Lance Taylor
  0 siblings, 1 reply; 4+ messages in thread
From: galexander2 @ 2012-01-07  6:49 UTC (permalink / raw)
  To: gcc-help

I'm using the C++ preprocessor (g++ -E) to partially preprocess a C++ header file.  The preprocessor output documentation (http://gcc.gnu.org/onlinedocs/gcc-4.6.2/cpp/Preprocessor-Output.html#Preprocessor-Output) states:

  Long runs of blank lines are discarded.

Rather than have long runs of blank lines discarded, I would prefer that runs of two or more blank lines be replaced by single blank line or be left as is.  Does anyone know of a way to accomplish either of these?

Thanks,
Geoff Alexander

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Keeping blank lines in C++ preproccessor output
@ 2012-01-07  2:57 galexander2
  0 siblings, 0 replies; 4+ messages in thread
From: galexander2 @ 2012-01-07  2:57 UTC (permalink / raw)
  To: gcc-help

I'm using the C++ preprocessor (g++ -E) to partially preprocess a C++ header file.  The preprocessor output documentation (http://gcc.gnu.org/onlinedocs/gcc-4.5.1/cpp/Preprocessor-Output.html) states:

  Long runs of blank lines are discarded.

Rather than have long runs of blank lines discarded, I would prefer that runs of two or more blank lines be replaced by single blank line or that blank lines be left as is.  Does anyone know of a way to accomplish either of these?

Thanks,
Geoff Alexander

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-09 20:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-07  6:49 Keeping blank lines in C++ preproccessor output galexander2
2012-01-08  1:02 ` Ian Lance Taylor
2012-01-10 17:01   ` Kevin P. Fleming
  -- strict thread matches above, loose matches on Subject: below --
2012-01-07  2:57 galexander2

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).