]> git.vpit.fr Git - perl/modules/Lexical-Types.git/commitdiff
Rename lt_op_info.old_pp_padsv to .old_pp
authorVincent Pit <vince@profvince.com>
Fri, 6 Sep 2013 10:56:40 +0000 (12:56 +0200)
committerVincent Pit <vince@profvince.com>
Fri, 6 Sep 2013 11:05:36 +0000 (13:05 +0200)
For it will be soon allowed to be something else.

Types.xs

index 518fd8f1122c37f5d51966b6270c17f02c156f3e..bf6c0bd4ec363d5a027562097985d8ecf23c75d4 100644 (file)
--- a/Types.xs
+++ b/Types.xs
@@ -436,10 +436,10 @@ typedef struct {
  SV *type_pkg;
  SV *type_meth;
 #endif /* !MULTIPLICITY */
- OP *(*old_pp_padsv)(pTHX);
+ OP *(*old_pp)(pTHX);
 } lt_op_info;
 
-STATIC void lt_map_store(pTHX_ const OP *o, SV *orig_pkg, SV *type_pkg, SV *type_meth, OP *(*old_pp_padsv)(pTHX)) {
+STATIC void lt_map_store(pTHX_ const OP *o, SV *orig_pkg, SV *type_pkg, SV *type_meth, OP *(*old_pp)(pTHX)) {
 #define lt_map_store(O, OP, TP, TM, PP) lt_map_store(aTHX_ (O), (OP), (TP), (TM), (PP))
  lt_op_info *oi;
 
@@ -490,7 +490,7 @@ STATIC void lt_map_store(pTHX_ const OP *o, SV *orig_pkg, SV *type_pkg, SV *type
  oi->type_meth = type_meth;
 #endif /* !MULTIPLICITY */
 
- oi->old_pp_padsv = old_pp_padsv;
+ oi->old_pp = old_pp;
 
  LT_UNLOCK(&lt_op_map_mutex);
 }
@@ -579,7 +579,7 @@ STATIC OP *lt_pp_padsv(pTHX) {
   FREETMPS;
   LEAVE;
 
-  return oi.old_pp_padsv(aTHX);
+  return oi.old_pp(aTHX);
  }
 
  return PL_op->op_ppaddr(aTHX);
@@ -698,8 +698,8 @@ STATIC void lt_peep_rec(pTHX_ OP *o, ptable *seen) {
      LT_LOCK(&lt_op_map_mutex);
      oi = ptable_fetch(lt_op_map, o);
      if (oi) {
-      oi->old_pp_padsv = o->op_ppaddr;
-      o->op_ppaddr     = lt_pp_padsv;
+      oi->old_pp   = o->op_ppaddr;
+      o->op_ppaddr = lt_pp_padsv;
      }
      LT_UNLOCK(&lt_op_map_mutex);
     }