Two tokens that don't together form a vaid preprocssor token cannot be

pasted together using ANSI-C token concatinatation.  GCC's cpp, at least,
produces the desired result w/o using "##".
This commit is contained in:
obrien 2003-04-26 17:00:10 +00:00
parent f97c9694e2
commit 0934a65cb4
2 changed files with 4 additions and 4 deletions

View File

@ -136,7 +136,7 @@
_ALIGN_DATA ; \
.globl name ; \
.type name, @object ; \
name ## :
name:
#define EMPTY
@ -145,7 +145,7 @@ name ## :
_ALIGN_TEXT ; \
.globl name ; \
.type name, @function ; \
name ## :
name:
#define END(name) \
.size name, . - name

View File

@ -55,11 +55,11 @@
*/
#define ATR(desc, r1, r2, r3, l1, l2) \
.sect .rodata ; \
l1 ## : .asciz desc ; \
l1: .asciz desc ; \
.previous ; \
SET(ktr_idx, r2, r1) ; \
lduw [r1], r2 ; \
l2 ## : add r2, 1, r3 ; \
l2: add r2, 1, r3 ; \
set KTR_ENTRIES - 1, r1 ; \
and r3, r1, r3 ; \
set ktr_idx, r1 ; \