Skip to content

Latest commit

 

History

History
50 lines (47 loc) · 1.12 KB

gendef.pl

File metadata and controls

50 lines (47 loc) · 1.12 KB
 
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
Feb 24, 2006
Feb 24, 2006
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
print "\tSDL_putenv\n";
print "\tSDL_getenv\n";
print "\tSDL_qsort\n";
print "\tSDL_revcpy\n";
print "\tSDL_strlen\n";
print "\tSDL_strlcpy\n";
print "\tSDL_strlcat\n";
print "\tSDL_strdup\n";
print "\tSDL_strrev\n";
print "\tSDL_strupr\n";
print "\tSDL_strlwr\n";
print "\tSDL_strchr\n";
print "\tSDL_strrchr\n";
print "\tSDL_strstr\n";
print "\tSDL_ltoa\n";
print "\tSDL_ultoa\n";
print "\tSDL_strtol\n";
print "\tSDL_strtod\n";
print "\tSDL_strcmp\n";
print "\tSDL_strncmp\n";
print "\tSDL_strcasecmp\n";
print "\tSDL_sscanf\n";
print "\tSDL_snprintf\n";
print "\tSDL_vsnprintf\n";
Apr 26, 2001
Apr 26, 2001
50
print "\tSDL_InitQuickDraw\n";