]> git.vpit.fr Git - perl/modules/Lexical-Types.git/commitdiff
Rename the pp_padsv member to old_pp_padsv
authorVincent Pit <vince@profvince.com>
Sat, 2 Jan 2010 23:30:09 +0000 (00:30 +0100)
committerVincent Pit <vince@profvince.com>
Sat, 2 Jan 2010 23:30:09 +0000 (00:30 +0100)
As pp_padsv is a compatibility macro from the perl core headers.

Types.xs

index 8ff68ada6755bbcc54d77beb2ffc613cbd84f68d..47f822274b0e001167923041bd8bc0cf4d8fbeda 100644 (file)
--- a/Types.xs
+++ b/Types.xs
@@ -350,10 +350,10 @@ typedef struct {
  SV *type_pkg;
  SV *type_meth;
 #endif /* !MULTIPLICITY */
- OP *(*pp_padsv)(pTHX);
+ OP *(*old_pp_padsv)(pTHX);
 } lt_op_info;
 
-STATIC void lt_map_store(pTHX_ const OP *o, SV *orig_pkg, SV *type_pkg, SV *type_meth, OP *(*pp_padsv)(pTHX)) {
+STATIC void lt_map_store(pTHX_ const OP *o, SV *orig_pkg, SV *type_pkg, SV *type_meth, OP *(*old_pp_padsv)(pTHX)) {
 #define lt_map_store(O, OP, TP, TM, PP) lt_map_store(aTHX_ (O), (OP), (TP), (TM), (PP))
  lt_op_info *oi;
 
@@ -406,7 +406,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->pp_padsv  = pp_padsv;
+ oi->old_pp_padsv = old_pp_padsv;
 
 #ifdef USE_ITHREADS
  MUTEX_UNLOCK(&lt_op_map_mutex);
@@ -509,7 +509,7 @@ STATIC OP *lt_pp_padsv(pTHX) {
    LEAVE;
   }
 
-  return CALL_FPTR(oi.pp_padsv)(aTHX);
+  return CALL_FPTR(oi.old_pp_padsv)(aTHX);
  }
 
  return CALL_FPTR(PL_ppaddr[OP_PADSV])(aTHX);