Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 561 Bytes

gendef.pl

File metadata and controls

26 lines (23 loc) · 561 Bytes
 
Apr 26, 2001
Apr 26, 2001
1
2
3
4
#!/usr/bin/perl
#
# Program to take a set of header files and generate DLL export definitions
Feb 1, 2006
Feb 1, 2006
5
6
7
# Special exports to ignore for this platform
$exclude{"SDL_CreateThread_Core"} = 1;
Apr 26, 2001
Apr 26, 2001
8
9
10
11
12
13
14
15
while ( ($file = shift(@ARGV)) ) {
if ( ! defined(open(FILE, $file)) ) {
warn "Couldn't open $file: $!\n";
next;
}
$printed_header = 0;
$file =~ s,.*/,,;
while (<FILE>) {
Aug 20, 2004
Aug 20, 2004
16
if ( / DECLSPEC.* SDLCALL ([^\s\(]+)/ ) {
Feb 1, 2006
Feb 1, 2006
17
18
19
if ( not $exclude{$1} ) {
print "\t$1\n";
}
Apr 26, 2001
Apr 26, 2001
20
21
22
23
}
}
close(FILE);
}
Feb 1, 2006
Feb 1, 2006
24
25
# Special exports to include for this platform
Apr 26, 2001
Apr 26, 2001
26
print "\tSDL_InitQuickDraw\n";