From 4e7e09dc0a921d473fe8f57b12521b602c86dcf5 Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Sat, 24 Aug 2019 22:03:28 +0900 Subject: [PATCH] add a node flag NODE_ST_EMPTY_STATUS_CHECK --- src/regparse.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/regparse.h b/src/regparse.h index b8b1fdb..efae60f 100644 --- a/src/regparse.h +++ b/src/regparse.h @@ -339,6 +339,7 @@ typedef struct _Node { #define NODE_ST_FIXED_OPTION (1<<18) #define NODE_ST_PROHIBIT_RECURSION (1<<19) #define NODE_ST_SUPER (1<<20) +#define NODE_ST_EMPTY_STATUS_CHECK (1<<21) #define NODE_STATUS(node) (((Node* )node)->u.base.status) @@ -368,6 +369,8 @@ typedef struct _Node { ((NODE_STATUS(node) & NODE_ST_PROHIBIT_RECURSION) != 0) #define NODE_IS_STRICT_REAL_REPEAT(node) \ ((NODE_STATUS(node) & NODE_ST_STRICT_REAL_REPEAT) != 0) +#define NODE_IS_EMPTY_STATUS_CHECK(node) \ + ((NODE_STATUS(node) & NODE_ST_EMPTY_STATUS_CHECK) != 0) #define NODE_PARENT(node) ((node)->u.base.parent) #define NODE_BODY(node) ((node)->u.base.body) -- 2.40.0