avoid infinite loop in h2xs (from Hugo van der Sanden)
Gurusamy Sarathy [Mon, 13 Mar 2000 21:36:24 +0000 (21:36 +0000)]
p4raw-id: //depot/perl@5713

utils/h2xs.PL

index 333e891..50b15d1 100644 (file)
@@ -586,7 +586,7 @@ if( ! $opt_X ){  # use XS, unless it was disabled
       }
     }
     { local $" = '|';
-      $typedef_rex = qr(\b(?<!struct )(?:@good_td)\b);
+      $typedef_rex = qr(\b(?<!struct )(?:@good_td)\b) if @good_td;
     }
     %known_fnames = map @$_[1,3], @$fdecls_parsed; # [1,3] is NAME, FULLTEXT
     if ($fmask) {