Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 368
okutane Avatar asked Jan 15 '09 08:01

okutane


1 Answers

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

like image 159
Martin Wickman Avatar answered Sep 28 '22 02:09

Martin Wickman