identify();
+my $todo_file;
+my $todo_version;
+if ($opt{todo}) {
+ $todo_file = $opt{todo};
+ $todo_version = $opt{version};
+}
+
print "\n", ident_str(), "\n\n";
my $fullperl = `which $opt{perl}`;
# }
#
# The values are the outputs from nm, plus 'E' from us, for Error
-my %todo = %{load_todo($opt{todo}, $opt{version})} if $opt{todo};
+my %todo = %{load_todo($todo_file, $todo_version)} if $opt{todo};
my @recheck;
# Write the revised todo, so that apicheck.c when generated in the next
# iteration will have these #ifdef'd out
- write_todo($opt{todo}, $opt{version}, \%todo);
+ write_todo($todo_file, $todo_version, \%todo);
} # End of loop
# If we are to check our work, do so. This verifies that each symbol
# Write out the todo file without this symbol, meaning it will be enabled
# in the generated apicheck.c file
- write_todo($opt{todo}, $opt{version}, \%todo);
+ write_todo($todo_file, $todo_version, \%todo);
# E is not an nm symbol, but was added by us to indicate 'Error'
if ($cur eq "E (Perl_$sym)") {
}
} # End of checking our work
-write_todo($opt{todo}, $opt{version}, \%todo);
+write_todo($todo_file, $todo_version, \%todo);
# Clean up after ourselves
run(qw(make realclean));
$what = colored("$what symbol", $col{$what});
printf "[%s] %s %-30s # %s%s\n",
- $opt{version}, $what, $sym, $reason, $extra;
+ $todo_version, $what, $sym, $reason, $extra;
}
sub regen_Makefile
}
# And rewrite the todo file, including these new symbols.
- write_todo($opt{todo}, $opt{version}, \%todo);
+ write_todo($todo_file, $todo_version, \%todo);
# Regenerate apicheck.c for the next iteration
regen_apicheck();