blob: 620d2ebab30645af8602a442bb2c8d4209fa4f3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
my $CCTYPE = "";
print "EXPORTS\n";
foreach (@ARGV) {
if (/CCTYPE=(.*)$/) {
$CCTYPE = $1;
next;
}
emit_symbol("boot_$_");
}
sub emit_symbol {
my $symbol = shift;
if ($CCTYPE eq "BORLAND") {
# workaround Borland quirk by export both the straight
# name and a name with leading underscore
print "\t$symbol=_$symbol\n";
print "\t_$symbol\n";
}
else {
print "\t$symbol\n";
}
}
|