-
Notifications
You must be signed in to change notification settings - Fork 26
Conversation
ec96a1a
to
3941074
Compare
Similarly to #395, this should maintain the original characters. I.e. |
6940104
to
c58ef37
Compare
Also, please add all the examples I gave as unit tests. |
ac77399
to
4a73420
Compare
Everything except the issue of |
1232efe
to
4273903
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I started a review a few weeks ago but never finished.
No worries- I have to finish the rc-token branch first anyway so I’ll be occupied for a while. |
works except on nested strings which contain escape characters
Whitespace between hash and id Hash with no replacement should keep hash Put null terminator on stringified value Add more test cases
4273903
to
5d94c7f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple nits, and I'd also like to see a few tests other than #define xstr(a) #a
. But overall this looks good :)
I made your changes and added a few more tests. If you have anything specific you want, let me know. r? @jyn514 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last couple nits. Looks great :)
This is an extension of branch in #437. I will rebase when that branch is merged.
Initial attempt seems to work for all cases except stringification of strings which contain escaped characters, in which case the escape is not deep enough. E.g.
preprocesses to
but should be