summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-11-04 13:12:21 -0700
committerKarl Williamson <khw@cpan.org>2019-11-06 21:22:24 -0700
commit472799915f21962871c7c62bd6b48f9e6775e0b7 (patch)
tree2de6759aa0c2b39c5f289ea5fba966f1cafccd4a /op.h
parentb8e8e0fc7ce2b44e6b1ba9f6ea70ac62f044c284 (diff)
downloadperl-472799915f21962871c7c62bd6b48f9e6775e0b7.tar.gz
doop.c: Change out-of-bounds value
This currently uses 0xfeedface as a marker for something that isn't a legal value. But that could in fact become legal at same point. This defines a value TR_OOB that can be guaranteed not to become legal.
Diffstat (limited to 'op.h')
-rw-r--r--op.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/op.h b/op.h
index 2d5f81e431..cc9f1afc1c 100644
--- a/op.h
+++ b/op.h
@@ -1113,6 +1113,7 @@ C<sib> is non-null. For a higher-level interface, see C<L</op_sibling_splice>>.
# define TR_UNMAPPED (UV)-1
# define TR_DELETE (UV)-2
# define TR_R_EMPTY (UV)-3 /* rhs (replacement) is empty */
+# define TR_OOB (UV)-4 /* Something that isn't one of the others */
#endif
#if defined(PERL_IN_OP_C) || defined(PERL_IN_TOKE_C)
#define RANGE_INDICATOR ILLEGAL_UTF8_BYTE