summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2006-09-29 19:39:16 +0200
committerH.Merijn Brand <h.m.brand@xs4all.nl>2006-09-29 17:54:12 +0000
commita5ca303d52a1ef183f2014497a2d96212f0b1dd4 (patch)
treefa2fd8044b56f529717692d0b026c9bc8dc71cc2 /regcomp.h
parent42bc49da149640802c6d82e088ba670810f22d2a (diff)
downloadperl-a5ca303d52a1ef183f2014497a2d96212f0b1dd4.tar.gz
Minor re 'Debug' tweaks, also fix a bug in dumping certain patterns.
Message-ID: <9b18b3110609290839i58fa703u59259e4ec1d9f2d9@mail.gmail.com> p4raw-id: //depot/perl@28904
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/regcomp.h b/regcomp.h
index a3dc5d646d..3213fc8e29 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -585,7 +585,6 @@ re.pm, especially to the documentation.
#define RE_DEBUG_COMPILE_OPTIMISE 0x000002
#define RE_DEBUG_COMPILE_TRIE 0x000004
#define RE_DEBUG_COMPILE_DUMP 0x000008
-#define RE_DEBUG_COMPILE_OFFSETS 0x000010
/* Execute */
#define RE_DEBUG_EXECUTE_MASK 0x00FF00
@@ -597,7 +596,9 @@ re.pm, especially to the documentation.
#define RE_DEBUG_EXTRA_MASK 0xFF0000
#define RE_DEBUG_EXTRA_TRIE 0x010000
#define RE_DEBUG_EXTRA_OFFSETS 0x020000
-#define RE_DEBUG_EXTRA_STATE 0x040000
+#define RE_DEBUG_EXTRA_OFFDEBUG 0x040000
+#define RE_DEBUG_EXTRA_STATE 0x080000
+#define RE_DEBUG_EXTRA_OPTIMISE 0x100000
#define RE_DEBUG_FLAG(x) (re_debug_flags & x)
/* Compile */
@@ -611,8 +612,6 @@ re.pm, especially to the documentation.
if (re_debug_flags & RE_DEBUG_COMPILE_PARSE) x )
#define DEBUG_DUMP_r(x) DEBUG_r( \
if (re_debug_flags & RE_DEBUG_COMPILE_DUMP) x )
-#define DEBUG_OFFSETS_r(x) DEBUG_r( \
- if (re_debug_flags & RE_DEBUG_COMPILE_OFFSETS) x )
#define DEBUG_TRIE_COMPILE_r(x) DEBUG_r( \
if (re_debug_flags & RE_DEBUG_COMPILE_TRIE) x )
@@ -629,10 +628,15 @@ re.pm, especially to the documentation.
/* Extra */
#define DEBUG_EXTRA_r(x) DEBUG_r( \
if (re_debug_flags & RE_DEBUG_EXTRA_MASK) x )
+#define DEBUG_OFFSETS_r(x) DEBUG_r( \
+ if (re_debug_flags & RE_DEBUG_EXTRA_OFFSETS) x )
#define DEBUG_STATE_r(x) DEBUG_r( \
if (re_debug_flags & RE_DEBUG_EXTRA_STATE) x )
+#define DEBUG_OPTIMISE_MORE_r(x) DEBUG_r( \
+ if ((RE_DEBUG_EXTRA_OPTIMISE|RE_DEBUG_COMPILE_OPTIMISE) == \
+ (re_debug_flags & (RE_DEBUG_EXTRA_OPTIMISE|RE_DEBUG_COMPILE_OPTIMISE)) ) x )
#define MJD_OFFSET_DEBUG(x) DEBUG_r( \
- if (re_debug_flags & RE_DEBUG_EXTRA_OFFSETS) \
+ if (re_debug_flags & RE_DEBUG_EXTRA_OFFDEBUG) \
Perl_warn_nocontext x )
#define DEBUG_TRIE_COMPILE_MORE_r(x) DEBUG_TRIE_COMPILE_r( \
if (re_debug_flags & RE_DEBUG_EXTRA_TRIE) x )