diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2022-04-29 15:21:07 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2022-04-29 15:21:07 +0200 |
commit | b221fe9845ea6d4639db16221f6fa8ab2ad11d8e (patch) | |
tree | c42c12a03537b21e5ec847c489529a0733ba8f6b /src/regparse.h | |
parent | e179aaa7fd01fa35bb86aab50ff6132bf94533c5 (diff) | |
parent | db6f38bc1b73930f1da954525464cf1986f43a28 (diff) |
Update upstream source from tag 'upstream/6.9.8'
Update to upstream version '6.9.8'
with Debian dir 35ad482ae0e78767310ef0fc5220bcf59d57ab22
Diffstat (limited to 'src/regparse.h')
-rw-r--r-- | src/regparse.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/regparse.h b/src/regparse.h index 8875f78..5421252 100644 --- a/src/regparse.h +++ b/src/regparse.h @@ -4,7 +4,7 @@ regparse.h - Oniguruma (regular expression library) **********************************************************************/ /*- - * Copyright (c) 2002-2021 K.Kosako + * Copyright (c) 2002-2022 K.Kosako * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -350,6 +350,7 @@ typedef struct { #define NODE_ST_FIXED_CLEN_MIN_SURE (1<<25) #define NODE_ST_REFERENCED (1<<26) #define NODE_ST_INPEEK (1<<27) +#define NODE_ST_WHOLE_OPTIONS (1<<28) #define NODE_STATUS(node) (((Node* )node)->u.base.status) @@ -387,6 +388,7 @@ typedef struct { #define NODE_IS_FIXED_CLEN_MIN_SURE(node) ((NODE_STATUS(node) & NODE_ST_FIXED_CLEN_MIN_SURE) != 0) #define NODE_IS_REFERENCED(node) ((NODE_STATUS(node) & NODE_ST_REFERENCED) != 0) #define NODE_IS_INPEEK(node) ((NODE_STATUS(node) & NODE_ST_INPEEK) != 0) +#define NODE_IS_WHOLE_OPTIONS(node) ((NODE_STATUS(node) & NODE_ST_WHOLE_OPTIONS) != 0) #define NODE_PARENT(node) ((node)->u.base.parent) #define NODE_BODY(node) ((node)->u.base.body) @@ -444,14 +446,17 @@ typedef struct { SaveItem* saves; #ifdef USE_CALL UnsetAddrList* unset_addr_list; - int has_call_zero; #endif unsigned int parse_depth; #ifdef ONIG_DEBUG_PARSE unsigned int max_parse_depth; #endif + unsigned int flags; } ParseEnv; +#define PE_FLAG_HAS_CALL_ZERO (1<<0) +#define PE_FLAG_HAS_WHOLE_OPTIONS (1<<1) + extern int onig_renumber_name_table P_((regex_t* reg, GroupNumMap* map)); |