This series unifies several disparate helper macros for concatenating tokens with macros. The chosen nomenclature (subject to feedback) is:
PASTE2(a, b)to directly paste tokens, and
CONCAT2(a, b)to paste tokens with an added layer of indirection to allow nested macros to be expanded before pasting.
Equivalents for three and four arguments are named
The nine patches form three groups:
- 1-4 unify the naming of existing macros without removing any definitions,
- 5 adds new shared definitions to
- 6-9 remove other definitions from around the codebase.
For the first and third groups, there is one patch each for
I've deliberately not updated the
CONCAT3() macros defined and used in assyntax.h, since files that include it appear to be reasonably self-contained otherwise.
Signed-off-by: Matt Coster <firstname.lastname@example.org> Reviewed-by: Lionel Landwerlin <email@example.com> [intel patches only] Reviewed-by: Ian Romanick <firstname.lastname@example.org> [glx+util patches only]