<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tinycc/tests/tests2/68_macro_concat.expect, branch main</title>
<subtitle>Tiny C Compiler by Fabrice Bellard Git mirror of the final release by Bellard, discarding all changes after. The repository at https://repo.or.cz/tinycc.git has become untrustworthy. Also the tcc sources have become tainted with AI slop.</subtitle>
<id>https://git.datenwolf.net/tinycc/atom/tests/tests2/68_macro_concat.expect?h=main</id>
<link rel='self' href='https://git.datenwolf.net/tinycc/atom/tests/tests2/68_macro_concat.expect?h=main'/>
<link rel='alternate' type='text/html' href='https://git.datenwolf.net/tinycc/'/>
<updated>2014-07-01T15:54:49Z</updated>
<entry>
<title>Rename:</title>
<updated>2014-07-01T15:54:49Z</updated>
<author>
<name>jiang</name>
<email>30155751@qq.com</email>
</author>
<published>2014-07-01T15:54:49Z</published>
<link rel='alternate' type='text/html' href='https://git.datenwolf.net/tinycc/commit/?id=89000c18dc7d5ccb2687948f94fe49d392990dab'/>
<id>urn:sha1:89000c18dc7d5ccb2687948f94fe49d392990dab</id>
<content type='text'>
68_macro_concat.c -&gt; 68_macro_param_list_err_1.c
69_macro_concat.c -&gt; 69_macro_param_list_err_2.c
and Remove spaces
</content>
</entry>
<entry>
<title>bug:</title>
<updated>2014-06-29T12:35:57Z</updated>
<author>
<name>jiang</name>
<email>30155751@qq.com</email>
</author>
<published>2014-06-29T12:35:57Z</published>
<link rel='alternate' type='text/html' href='https://git.datenwolf.net/tinycc/commit/?id=a3fc54345949535524d01319e1ca6378b7c2c201'/>
<id>urn:sha1:a3fc54345949535524d01319e1ca6378b7c2c201</id>
<content type='text'>
----------------------------------------------------------------------
#define hexCh(c (c &gt;= 10 ? 'a' + c - 10 : '0' + c)
  hexCh(c);

out:
jiang@jiang:~/test$ ./tcc -E c4.c
# 1 "c4.c"

(c &gt;= 10 ? 'a' + c - 10 : '0' + c);
---------------------------------------------------------------

#define hexCh(c/3) (c &gt;= 10 ? 'a' + c - 10 : '0' + c)
hexCh(c);

out:
jiang@jiang:~/test$ ./tcc -E c4.c
# 1 "c4.c"

/3) (c &gt;= 10 ? 'a' + c - 10 : '0' + c);
jiang@jiang:~/test$

after patch:

# 1 "c4.c"
c4.c:1: error: may not appear in macro parameter list: "("
jiang@jiang:~/test$

jiang@jiang:~/test$ ./tcc -E c4.c
# 1 "c4.c"
c4.c:1: error: may not appear in macro parameter list: "/"
jiang@jiang:~/test$
</content>
</entry>
</feed>
