Kiwamu Okabe

Results 38 comments of Kiwamu Okabe

Should be consider `#include_next`...

I think we can drop supporting `#include_next`: ``` $ grep -r "^#include_next" /usr/include /usr/include/bsd/stdio.h:#include_next /usr/include/bsd/err.h:#include_next /usr/include/bsd/sys/cdefs.h:#include_next /usr/include/bsd/sys/endian.h:#include_next /usr/include/bsd/sys/poll.h:#include_next /usr/include/bsd/stdlib.h:#include_next /usr/include/bsd/unistd.h:#include_next /usr/include/bsd/getopt.h:#include_next /usr/include/bsd/string.h:#include_next /usr/include/bsd/wchar.h:#include_next /usr/include/c++/6/cstdlib:#include_next /usr/include/c++/6/cmath:#include_next ``` And also, NetBSD src/sys...

Support `# include`: ``` $ grep -r getopt.h /usr/include/ /usr/include/stdio.h:# include ```

Slow? ``` total time = 2.90 secs (2902 ticks @ 1000 us, 1 processor) total alloc = 4,791,124,296 bytes (excludes profiling overheads) COST CENTRE MODULE %time %alloc lexC Language.C.Parser.Lexer 20.1...

Ummm.... How to fix it? ``` $ make c2ats gen -o out example.h dirname `find out -name example.sats` | \ sed -e "s/^/#define EXAMPLE_targetloc \"/" | \ sed -e "s/$/\"/"...

It seems like we can't escape with `#ifndef` pattern...

Need capturing include loop and cut sub tree.

And should also inject `#include "out/c2ats_prelude.sats"` into `out/home/kiwamu/src/c2ats/example/satstree/example.sats`.

We should create `gtk3tree` example.