tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Request push


From: jiang
Subject: [Tinycc-devel] Request push
Date: Mon, 23 Jun 2014 23:56:10 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

I'll push a patch.

bug:

----------------------------------------------------------------------
#define hexCh(c (c >= 10 ? 'a' + c - 10 : '0' + c)
  hexCh(c);

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

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

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

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

/3) (c >= 10 ? 'a' + c - 10 : '0' + c);
address@hidden:~/test$

after patch:

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



address@hidden:~/test$ ./tcc -E c4.c
# 1 "c4.c"
c4.c:1: error: may not appear in macro parameter list: "/"
address@hidden:~/test$



-------------------------------------------------------------------------
    address@hidden:weixiao/tinycc.git

Thank you for reminding

jiang

于 2014年06月23日 09:50, address@hidden 写道:
Hey jiang,

For each of these three patches, please explain the following:

1) When run with the version of tcc without your patch, what behavior do you get? What does the C99 spec tell us we should get?
2) How does the proposed patch alter the behavior of tcc?

Also, it appears you did not read the links I provided about how to write good commit messages. Please re-read those and write better ones.

Thanks!
David


On Sun, Jun 22, 2014 at 3:41 AM, jiang <address@hidden> wrote:
Here is a patch to push
I hope to help you.

jiang

_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel




--
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan
" tinycc is a great project, and I am honored to join a project  "

Attachment: p1
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]