]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - Magic.xs
Build better testcases in t/18-opinfo.t
[perl/modules/Variable-Magic.git] / Magic.xs
index 14a33f4a12a5cb7419ebc847b782dd402958f445..814a6af19004a662f7e2906ebfaecf5d4af3c9cb 100644 (file)
--- a/Magic.xs
+++ b/Magic.xs
@@ -229,8 +229,10 @@ STATIC const char *const vmg_opclassnames[] = {
 };
 
 STATIC opclass vmg_opclass(const OP *o) {
+#if 0
  if (!o)
   return OPc_NULL;
+#endif
 
  if (o->op_type == 0)
   return (o->op_flags & OPf_KIDS) ? OPc_UNOP : OPc_BASEOP;
@@ -335,8 +337,7 @@ STATIC U16 vmg_gensig(pTHX) {
  char buf[8];
  dMY_CXT;
 
- if (HvKEYS(MY_CXT.wizards) >= SIG_NBR)
-  croak(vmg_toomanysigs);
+ if (HvKEYS(MY_CXT.wizards) >= SIG_NBR) croak(vmg_toomanysigs);
 
  do {
   sig = SIG_NBR * Drand01() + SIG_MIN;