diff options
author | David Mitchell <davem@iabyn.com> | 2016-03-30 15:11:26 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2016-03-30 15:11:26 +0100 |
commit | c349b9a040f3048e07809d40d2a1c12e8873b4ca (patch) | |
tree | a41b0cc2c8230702254c90f3577c07b2e2da177b /op.h | |
parent | aea0412a260d9d7295c0a5bebb8bb6978dc02ccd (diff) | |
download | perl-c349b9a040f3048e07809d40d2a1c12e8873b4ca.tar.gz |
Improve code comments for some ctx stuff
* in pp_return(), some comments were out of date about how
leave_adjust_stacks() is called ;
* add a comment to all the functions that pp_return() tail-calls to the
effect that they can be tail-called;
* make it clearer when/why OPf_SPECIAL is set on OP_LEAVE;
* CXt_LOOP_PLAIN can be a while loop as well as a plain block.
Diffstat (limited to 'op.h')
-rw-r--r-- | op.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -113,7 +113,8 @@ Deprecated. Use C<GIMME_V> instead. /* On local LVAL, don't init local value. */ /* On OP_SORT, subroutine is inlined. */ /* On OP_NOT, inversion was implicit. */ - /* On OP_LEAVE, don't restore curpm. */ + /* On OP_LEAVE, don't restore curpm, e.g. + * /(...)/ while ...>; */ /* On truncate, we truncate filehandle */ /* On control verbs, we saw no label */ /* On flipflop, we saw ... instead of .. */ |