How to force gcc preprocessor to preserve whitespace?

纵饮孤独 提交于 2019-12-22 07:42:50

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/445986/how-to-force-gcc-preprocessor-to-preserve-whitespace

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!