summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2010-10-23 15:40:58 +0100
committerFather Chrysostomos <sprout@cpan.org>2010-10-25 12:29:47 -0700
commit94bf0465170f13a4a3114b27d564dc2287d466b2 (patch)
tree4156eb4d63521dfab715d1cef1a2c94181b43c81 /embed.fnc
parenteae48c8938e50ebb341a72c2886c5ae8587092a5 (diff)
downloadperl-94bf0465170f13a4a3114b27d564dc2287d466b2.tar.gz
stop passing line numbers into op constructor functions
Remove the line number parameter from newWHILEOP() and newFOROP() functions. Instead, the line number for the impending COP is set by parser code after constructing the ops. (In fact the parser was doing this anyway in most cases.) This brings newWHILEOP() and newFOROP() in line with the other op constructors, in that they do not concern themselves with COPs.
Diffstat (limited to 'embed.fnc')
-rw-r--r--embed.fnc5
1 files changed, 2 insertions, 3 deletions
diff --git a/embed.fnc b/embed.fnc
index 9f992c1bd8..5dce84b376 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -780,8 +780,7 @@ Ap |OP* |newFORM |I32 floor|NULLOK OP* o|NULLOK OP* block
#else
Ap |void |newFORM |I32 floor|NULLOK OP* o|NULLOK OP* block
#endif
-Apda |OP* |newFOROP |I32 flags|line_t forline \
- |NULLOK OP* sv|NN OP* expr|NULLOK OP* block|NULLOK OP* cont
+Apda |OP* |newFOROP |I32 flags|NULLOK OP* sv|NN OP* expr|NULLOK OP* block|NULLOK OP* cont
Apda |OP* |newGIVENOP |NN OP* cond|NN OP* block|PADOFFSET defsv_off
Apda |OP* |newLOGOP |I32 optype|I32 flags|NN OP *first|NN OP *other
Apda |OP* |newLOOPEX |I32 type|NN OP* label
@@ -837,7 +836,7 @@ Apda |SV* |newSV_type |const svtype type
Apda |OP* |newUNOP |I32 type|I32 flags|NULLOK OP* first
Apda |OP* |newWHENOP |NULLOK OP* cond|NN OP* block
Apda |OP* |newWHILEOP |I32 flags|I32 debuggable|NULLOK LOOP* loop \
- |I32 whileline|NULLOK OP* expr|NULLOK OP* block|NULLOK OP* cont \
+ |NULLOK OP* expr|NULLOK OP* block|NULLOK OP* cont \
|I32 has_my
Apd |CV* |rv2cv_op_cv |NN OP *cvop|U32 flags
Apd |OP* |ck_entersub_args_list|NN OP *entersubop