summaryrefslogtreecommitdiff
path: root/cop.h
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2017-12-05 22:30:50 +0000
committerZefram <zefram@fysh.org>2017-12-05 22:30:50 +0000
commit15e4ac9a427692a356fe62b255db9e08982879f5 (patch)
tree9dfebf01cd602da4c8fa372ec20a0b55c13f5788 /cop.h
parent284a3526271b040abd48aef39f61e8bacbf16645 (diff)
downloadperl-15e4ac9a427692a356fe62b255db9e08982879f5.tar.gz
internally change "when" to "whereso"
The names of ops, context types, functions, etc., all change in accordance with the change of keyword.
Diffstat (limited to 'cop.h')
-rw-r--r--cop.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/cop.h b/cop.h
index f9ba12304b..f6853573b3 100644
--- a/cop.h
+++ b/cop.h
@@ -721,8 +721,8 @@ struct block_loop {
-/* when context */
-struct block_when {
+/* whereso context */
+struct block_whereso {
OP *leave_op;
};
@@ -747,7 +747,7 @@ struct block {
struct block_format blku_format;
struct block_eval blku_eval;
struct block_loop blku_loop;
- struct block_when blku_when;
+ struct block_whereso blku_whereso;
} blk_u;
};
#define blk_oldsp cx_u.cx_blk.blku_oldsp
@@ -763,7 +763,7 @@ struct block {
#define blk_format cx_u.cx_blk.blk_u.blku_format
#define blk_eval cx_u.cx_blk.blk_u.blku_eval
#define blk_loop cx_u.cx_blk.blk_u.blku_loop
-#define blk_when cx_u.cx_blk.blk_u.blku_when
+#define blk_whereso cx_u.cx_blk.blk_u.blku_whereso
#define CX_DEBUG(cx, action) \
DEBUG_l( \
@@ -856,7 +856,7 @@ struct context {
and a static array of context names in pp_ctl.c */
#define CXTYPEMASK 0xf
#define CXt_NULL 0 /* currently only used for sort BLOCK */
-#define CXt_WHEN 1
+#define CXt_WHERESO 1
#define CXt_BLOCK 2
/* be careful of the ordering of these six. Macros like CxTYPE_is_LOOP,
* CxFOREACH compare ranges */