Bugzilla bug #23
svn path=/trunk/yasm/; revision=1092
" - don't edit it */\n\n#include <stddef.h>\n\nstatic const char *stdmac[] = {\n";
foreach $fname ( @ARGV ) {
- open(INPUT,$fname) or die "unable to open $fname\n";
+ if (not open(INPUT,$fname)) {
+ close(OUTPUT);
+ unlink("nasm-macros.c");
+ die "unable to open $fname\n";
+ }
while (<INPUT>) {
$line++;
chomp;
$index++;
}
} else {
+ close(OUTPUT);
+ unlink("nasm-macros.c");
die "$fname:$line: error unterminated quote";
}
}