2 ### Class Verify: Verify SFD info #################################################
10 my $class = ref($proto) || $proto;
12 $self->{SFD
} = $params{'sfd'};
17 bless ($self, $class);
23 my $sfd = $self->{SFD
};
25 print "Checking SFD for $$sfd{'libname'} ...";
28 if ($#{@{$sfd->{typedefs}}} != -1) {
29 print "\nWarning: SFD uses nonstandard '==typedef' command.";
37 my $prototype = $params{'prototype'};
38 my $sfd = $self->{SFD
};
40 if ($self->{FUNCS
}{$prototype->{funcname
}}) {
41 if ($prototype->{private
}) {
42 print "\nWarning: Private function $prototype->{funcname}() ".
43 "is defined more than once!";
47 print "\nError: Public function $prototype->{funcname}() ".
48 "is defined more than once!";
53 $self->{FUNCS
}{$prototype->{funcname
}} = 1;
61 my $sfd = $self->{SFD
};
63 if ($self->{WARNS
} != 0 || $self->{ERRORS
} != 0) {
64 print "\n$self->{WARNS} warning(s), $self->{ERRORS} error(s); ";
66 die if $self->{ERRORS
};
69 printf " $self->{CNT} function%s verified\n", $self->{CNT
} == 1 ?
"" : "s";