Skip to content

Commit f703846

Browse files
authored
Add function prototypes
1 parent 8a5ad01 commit f703846

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

exports/gensymbol

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4000,6 +4000,22 @@ case "$p1" in
40004000
no_underscore_objs="$no_underscore_objs $misc_common_objs"
40014001

40024002
printf 'int main(void){\n'
4003+
for obj in $underscore_objs; do
4004+
[ "$obj" != "xerbla" ] && printf 'extern void %s%s%s%s();\n' \
4005+
"$symbolprefix" "$obj" "$bu" "$symbolsuffix"
4006+
done
4007+
4008+
for obj in $need_2underscore_objs; do
4009+
printf 'extern void %s%s%s%s%s();\n' \
4010+
"$symbolprefix" "$obj" "$bu" "$bu" "$symbolsuffix"
4011+
done
4012+
4013+
for obj in $no_underscore_objs; do
4014+
printf 'extern void %s%s%s();\n' \
4015+
"$symbolprefix" "$obj" "$symbolsuffix"
4016+
done
4017+
4018+
printf '\n'
40034019
for obj in $underscore_objs; do
40044020
[ "$obj" != "xerbla" ] && printf '%s%s%s%s();\n' \
40054021
"$symbolprefix" "$obj" "$bu" "$symbolsuffix"

exports/gensymbol.pl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3955,6 +3955,18 @@
39553955
@no_underscore_objs = (@no_underscore_objs, @misc_common_objs);
39563956

39573957
print "int main(void){\n";
3958+
foreach $objs (@underscore_objs) {
3959+
print "extern void ", $symbolprefix, $objs, $bu, $symbolsuffix, "();\n" if $objs ne "xerbla";
3960+
}
3961+
3962+
foreach $objs (@need_2underscore_objs) {
3963+
print "extern void ", $symbolprefix, $objs, $bu, $bu, $symbolsuffix, "();\n";
3964+
}
3965+
3966+
foreach $objs (@no_underscore_objs) {
3967+
print "extern void ", $symbolprefix, $objs, $symbolsuffix, "();\n";
3968+
}
3969+
39583970
foreach $objs (@underscore_objs) {
39593971
print $symbolprefix, $objs, $bu, $symbolsuffix, "();\n" if $objs ne "xerbla";
39603972
}

0 commit comments

Comments
 (0)