HGY
HGY
I know why: just include the file itself will reproduce this bug. ``` ➜ wgtcc git:(master) git log commit 89c101e1027c0774d3130860c8cb5ed314f1b09b Author: wgtdkp Date: Fri Jul 14 23:01:39 2017 +0800 fix...
The preprocessor must handle macro expansion carefully in order to get right column number etc. It's tricky. That explains why early C compilers don't contain column number in diagnostic messages.
I think they are not identical token stream. `+ +` means two separate `+` tokens to lexer, and `++` means `increment operator` to lexer.
It's just one of numerous test cases.
Actually, `-E` option may be used by other compilers. That's why the output must contain the line number information. In early days, the preprocessor runs as a separate pass. Of...
The key: where is the f**king document that describes these corner cases completely? :-(
wgtcc是单进程程序吧?而且遇到错误就退出了,因此是如何支持处理多个文件的呢?第一个文件语法错误导致进程退出,这样第二个文件不就没被处理了么?
这样不好迁移到windows了,因为windows创建子进程要用文件,如果用一个函数的话,只能通过windows的POSIX子系统,然而这个子系统已经不维护了 :) 最开始我为了简单起见,也是单个二进制+fork,迁移到windows发现不大好了
We'd better talk in QQ. Can you send your QQ to my email? Thx.
I've updated my github profile :->