]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - Magic.xs
We don't need a (wrong) compatibility macro for NewOp, since we only use it on 5.10
[perl/modules/Variable-Magic.git] / Magic.xs
index 1fa63548e2a8bf86143010a61241fa57f3b57dfe..0915f4b861a527a5ba6337a57174e81db5fec5ad 100644 (file)
--- a/Magic.xs
+++ b/Magic.xs
@@ -89,10 +89,6 @@ STATIC SV *vmg_clone(pTHX_ SV *sv, tTHX owner) {
 # define Newx(v, n, c) New(0, v, n, c)
 #endif
 
-#ifndef NewOp
-# define NewOp(m, var, c, type) Newz(m, var, c, type)
-#endif
-
 #ifndef SvMAGIC_set
 # define SvMAGIC_set(sv, val) (SvMAGIC(sv) = (val))
 #endif
@@ -1095,7 +1091,7 @@ STATIC U16 vmg_wizard_sig(pTHX_ SV *wiz) {
 
  {
   dMY_CXT;
-  if (!hv_fetch(MY_CXT.wizards, buf, sprintf(buf, "%u", sig), 0))
+  if (!hv_exists(MY_CXT.wizards, buf, sprintf(buf, "%u", sig)))
    croak(vmg_invalid_wiz);
  }