diff options
author | Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> | 2021-02-08 23:27:30 +0000 |
---|---|---|
committer | Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> | 2021-02-08 23:27:42 +0000 |
commit | 16676e213e35e2dd7ceb8973b640ef7cf43b3ebc (patch) | |
tree | 97e552b95367c5395bdcaa50c6a784349cb926dc /op.h | |
parent | 5fa8d5db906c2b647f6651b061de02e805d898a1 (diff) | |
download | perl-16676e213e35e2dd7ceb8973b640ef7cf43b3ebc.tar.gz |
Add documentation comment to op.h to clarify that LOGOP's ->op_other is in execution order pointer, not a tree-structural one
Diffstat (limited to 'op.h')
-rw-r--r-- | op.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -224,6 +224,12 @@ struct binop { struct logop { BASEOP OP * op_first; + + /* Note that op->op_other is the *next* op in execution order of the + * alternate branch, not the root of the subtree. I.e. imagine it being + * called ->op_otherfirst. + * To find the structural subtree root (what could be called + * ->op_otherroot), use OpSIBLING of ->op_first */ OP * op_other; }; |