From e867ce454085c3d923d5d0c0a1fb280e28e878ad Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Tue, 6 Aug 2013 21:41:53 -0600 Subject: [PATCH] regcomp.h: Move #define This moves it to be adjacent to similar #defines --- regcomp.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/regcomp.h b/regcomp.h index c62b566..6b3f52d 100644 --- a/regcomp.h +++ b/regcomp.h @@ -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. */ -- 2.7.4