tinycc/tests/pp
grischka 7b9f19eaab tccpp: macro cleanup
- remove TOK_NOSUBST, mark the token itself instead
- get_tok_str(); mask out SYM_FIELD & update uses
- next(): optimize (~5% faster with tcc -E)
- tok_flags: remove some redundancy
- parse_define(): do not remove spaces around '##' and after '#'
    and mark macros with '##' as MACRO_JOIN to avoid unnecessary
    call to macro_twosharps(mstr):
- next_nomacro(): removed, next_nomacro1(): renamed to next_nomacro()
- next_argstream(): cleanup & new function peek_file()
- macro_subst_tok(): handle special macros (__DATE__ etc.)
  like normal macros if they are #defined
- -DPP_DEBUG : more structured output
- pp_error(): better preprocessor expression error message
- tcctok.h: sort basic keywords (somehow)
- testspp/Makefile: generate .expect with 'make testspp.##+'
- tcc.c: tcc -E -o file : put unixy LFs also on windows
2024-02-09 18:38:14 +01:00
..
01.c tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
01.expect tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
02.c tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
02.expect tccpp : "tcc -E -P" : suppress empty lines 2016-10-09 20:33:14 +02:00
03.c tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
03.expect tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
04.c tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
04.expect tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
05.c tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
05.expect tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
06.c tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
06.expect tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
07.c tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
07.expect tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
08.c tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
08.expect tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
09.c tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
09.expect tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
10.c tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
10.expect tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
11.c tccpp: macro cleanup 2024-02-09 18:38:14 +01:00
11.expect tccpp: macro cleanup 2024-02-09 18:38:14 +01:00
12.expect Identifiers can start and/or contain '.' in *.S 2016-04-05 10:43:50 +03:00
12.S Identifiers can start and/or contain '.' in *.S 2016-04-05 10:43:50 +03:00
13.expect various stuff 2017-10-11 18:13:43 +02:00
13.S fix preprocessing *.S with ` ' chars in #comments 2016-04-14 21:46:46 +03:00
14.c test/pp: cleanup 2016-10-01 21:05:42 +02:00
14.expect test/pp: cleanup 2016-10-01 21:05:42 +02:00
15.c various stuff 2017-10-11 18:13:43 +02:00
15.expect various stuff 2017-10-11 18:13:43 +02:00
16.c tccpp: Fix macro_is_equal 2016-12-15 17:47:05 +01:00
16.expect tccpp: Fix macro_is_equal 2016-12-15 17:47:05 +01:00
17.c tccpp: Fix token pasting 2016-12-15 17:49:56 +01:00
17.expect tccpp: Fix token pasting 2016-12-15 17:49:56 +01:00
18.c review recent commits 2024-02-04 18:18:40 +01:00
18.expect review recent commits 2024-02-04 18:18:40 +01:00
19.c tccpp: Fix corner case 2017-07-09 04:38:56 +02:00
19.expect tccpp: Fix corner case 2017-07-09 04:38:56 +02:00
20.c tccpp: Fix corner case 2017-07-09 04:38:56 +02:00
20.expect tccpp: Fix corner case 2017-07-09 04:38:56 +02:00
21.c tccpp: macro cleanup 2024-02-09 18:38:14 +01:00
21.expect tccpp: macro cleanup 2024-02-09 18:38:14 +01:00
22.c tccpp: Fix #ifdef in macro args 2022-08-16 15:59:41 +02:00
22.expect tccpp: Fix #ifdef in macro args 2022-08-16 15:59:41 +02:00
Makefile tccpp: macro cleanup 2024-02-09 18:38:14 +01:00
pp-counter.c tccpp: Implement __COUNTER__ 2017-07-09 05:30:47 +02:00
pp-counter.expect tccpp: Implement __COUNTER__ 2017-07-09 05:30:47 +02:00