my $config = "crypto/err/openssl.ec";
my $hprefix = "openssl/";
my $debug = 0;
+my $unref = 0;
my $rebuild = 0;
my $static = 1;
my $recurse = 0;
$hprefix = shift @ARGV;
} elsif($arg eq "-debug") {
$debug = 1;
+ $unref = 1;
shift @ARGV;
} elsif($arg eq "-rebuild") {
$rebuild = 1;
} elsif($arg eq "-staticloader") {
$staticloader = "static ";
shift @ARGV;
+ } elsif($arg eq "-unref") {
+ $unref = 1;
+ shift @ARGV;
} elsif($arg eq "-write") {
$dowrite = 1;
shift @ARGV;
-staticloader Prefix generated functions with the 'static' scope modifier.
Default: don't write any scope modifier prefix.
+ -unref Print out unreferenced function and reason codes.
+
-write Actually (over)write the generated code to the header and C
source files as assigned to each library through the config
file.
push (@runref, $_) unless exists $urcodes{$_};
}
-if($debug && @funref) {
+if($unref && @funref) {
print STDERR "The following function codes were not referenced:\n";
foreach(sort @funref)
{
}
}
-if($debug && @runref) {
+if($unref && @runref) {
print STDERR "The following reason codes were not referenced:\n";
foreach(sort @runref)
{