summaryrefslogtreecommitdiff
path: root/test/weirdpaste.asm
Commit message (Collapse)AuthorAgeFilesLines
* preproc: unify token-pasting codeH. Peter Anvin2009-04-201-0/+4
| | | | | | | | Unify the token-pasting code between the macro expansion and the preprocessor parameter case. Parameterize whether or not to handle %+ tokens during expansion (%+ tokens have late binding semantics.) Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* preproc: fix more token pasting casesH. Peter Anvin2009-04-081-0/+11
| | | | | | | "+" can be a separate token that ends up having to get pulled into the middle of a floating-point constant. It's not even that strange. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Handle weird cases of token pastingH. Peter Anvin2009-04-071-0/+14
Especially when token pasting involves floating-point numbers, we can have some really strange effects from token pasting: for example, pasting the two tokens "xyzzy" and "1e+10" ends up with *three* tokens: "xyzzy1e" "+" "10". The easiest way to deal with this is to explicitly combine the string and then run tokenize() on it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>