diff options
author | Karl Williamson <public@khwilliamson.com> | 2013-08-06 21:41:53 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-09-24 11:36:13 -0600 |
commit | e867ce454085c3d923d5d0c0a1fb280e28e878ad (patch) | |
tree | 515cda00d9c5b11ef47fabeea62d624d83e34be7 /regcomp.h | |
parent | 557bd3fbbb79c932d6c63b4e37201c2ae13c700d (diff) | |
download | perl-e867ce454085c3d923d5d0c0a1fb280e28e878ad.tar.gz |
regcomp.h: Move #define
This moves it to be adjacent to similar #defines
Diffstat (limited to 'regcomp.h')
-rw-r--r-- | regcomp.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -455,6 +455,10 @@ struct regnode_ssc { /* Shifts a bit to get, eg. 0x4000_0000, then subtracts 1 to get 0x3FFF_FFFF */ #define ANYOF_CLASS_SETALL(ret) STMT_START { ((struct regnode_charclass_class*) (ret))->classflags = ((1U << ((ANYOF_MAX) - 1))) - 1; } STMT_END +#define ANYOF_CLASS_TEST_ANY_SET(p) \ + ((ANYOF_FLAGS(p) & ANYOF_CLASS) \ + && (((struct regnode_charclass_class*)(p))->classflags)) + #define ANYOF_CLASS_OR(source, dest) STMT_START { (dest)->classflags |= source->classflags ; } STMT_END #define ANYOF_BITMAP_ZERO(ret) Zero(((struct regnode_charclass*)(ret))->bitmap, ANYOF_BITMAP_SIZE, char) @@ -475,10 +479,6 @@ struct regnode_ssc { #define ANYOF_SKIP ((ANYOF_SIZE - 1)/sizeof(regnode)) #define ANYOF_CLASS_SKIP ((ANYOF_CLASS_SIZE - 1)/sizeof(regnode)) -#define ANYOF_CLASS_TEST_ANY_SET(p) \ - ((ANYOF_FLAGS(p) & ANYOF_CLASS) \ - && (((struct regnode_charclass_class*)(p))->classflags)) - /* * Utility definitions. */ |