okutane
okutane

Reputation: 14260

How to force gcc preprocessor to preserve whitespace?

For the code:

int  i;

gcc preprocessor outputs:

int i;

How to force it to preserve whitespace?

I call preprocessor with: gcc -E somefile.c command.

Upvotes: 6

Views: 2855

Answers (1)

Martin Wickman
Martin Wickman

Reputation: 19905

Use it in traditional mode, ie '-traditional-cpp' as described here.

Upvotes: 12

Related Questions