Andrew Yourtchenko

Results 8 issues of Andrew Yourtchenko

Michael, as we discussed - here is a bunch of commits, mostly sequenced in order "testcase then fix". One of the fixes (multiline comment within the macro definition) causes the...

processing this input: ``` return 0xff; ``` results in the following output: ``` return255; ``` Conversion to decimal is probably OK (though nominally preprocessor should not do it), but eating...

Testcase: ``` h print(__FILE__) ``` The file name gets substituted without the double quotes.

Processing this chunk with lcpp: ``` h #define foo \ /* Comment here \ which spans lines */ \ this should never appear in the output \ but it does...

Processing this file: ``` h #define MACRO(a) a MACRO(((int)0)) MACRO((int)1) MACRO(2) ``` results in output: ``` ((int)0) (int) 2 ``` i.e. if a macro argument is preceded by a parenthesized...

Processing the below .h file (synthesized from real-world sequence of includes from the fd.io) with lcpp results in an infinite loop. Using anything other than a single underscore for the...

Compiling this code, reduced from a real world include file: ``` h #define _(t,n) typedef union n##t _ (u8, 16); #undef _ ``` Results in output "typedef uniou16 16u8", the...

Ray, I see that dropping/delaying the requests is "todo", and I needed it for one of my experiments, so I wanted to share some experience of how I did it...