author | Sam Lantinga <slouken@libsdl.org> |
Tue, 14 Mar 2006 07:55:40 +0000 | |
changeset 1529 | 84cecd0b64b4 |
parent 1516 | 4d241ea8a1cd |
permissions | -rw-r--r-- |
47
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
1 |
#!/usr/bin/perl |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
2 |
# |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
3 |
# Program to take a set of header files and generate DLL export definitions |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
4 |
|
1317 | 5 |
# Special exports to ignore for this platform |
825
618fcc5861c8
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
791
diff
changeset
|
6 |
|
47
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
7 |
while ( ($file = shift(@ARGV)) ) { |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
8 |
if ( ! defined(open(FILE, $file)) ) { |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
9 |
warn "Couldn't open $file: $!\n"; |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
10 |
next; |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
11 |
} |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
12 |
$file =~ s,.*/,,; |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
13 |
while (<FILE>) { |
930
02759105b989
Date: Fri, 20 Aug 2004 08:31:20 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
825
diff
changeset
|
14 |
if ( / DECLSPEC.* SDLCALL ([^\s\(]+)/ ) { |
1317 | 15 |
if ( not $exclude{$1} ) { |
16 |
print "\t_$1\n"; |
|
17 |
} |
|
47
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
18 |
} |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
19 |
} |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
20 |
close(FILE); |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
21 |
} |
1317 | 22 |
|
23 |
# Special exports to include for this platform |
|
1529
84cecd0b64b4
Updated MacOS Classic and MacOS X exports list
Sam Lantinga <slouken@libsdl.org>
parents:
1516
diff
changeset
|
24 |
print "\t_SDL_strrev\n"; |
84cecd0b64b4
Updated MacOS Classic and MacOS X exports list
Sam Lantinga <slouken@libsdl.org>
parents:
1516
diff
changeset
|
25 |
print "\t_SDL_strupr\n"; |
84cecd0b64b4
Updated MacOS Classic and MacOS X exports list
Sam Lantinga <slouken@libsdl.org>
parents:
1516
diff
changeset
|
26 |
print "\t_SDL_strlwr\n"; |
84cecd0b64b4
Updated MacOS Classic and MacOS X exports list
Sam Lantinga <slouken@libsdl.org>
parents:
1516
diff
changeset
|
27 |
print "\t_SDL_ltoa\n"; |
84cecd0b64b4
Updated MacOS Classic and MacOS X exports list
Sam Lantinga <slouken@libsdl.org>
parents:
1516
diff
changeset
|
28 |
print "\t_SDL_ultoa\n"; |
84cecd0b64b4
Updated MacOS Classic and MacOS X exports list
Sam Lantinga <slouken@libsdl.org>
parents:
1516
diff
changeset
|
29 |
print "\t_SDL_lltoa\n"; |
84cecd0b64b4
Updated MacOS Classic and MacOS X exports list
Sam Lantinga <slouken@libsdl.org>
parents:
1516
diff
changeset
|
30 |
print "\t_SDL_ulltoa\n"; |
84cecd0b64b4
Updated MacOS Classic and MacOS X exports list
Sam Lantinga <slouken@libsdl.org>
parents:
1516
diff
changeset
|
31 |
print "\t_SDL_iconv\n"; |
84cecd0b64b4
Updated MacOS Classic and MacOS X exports list
Sam Lantinga <slouken@libsdl.org>
parents:
1516
diff
changeset
|
32 |
print "\t_SDL_iconv_string\n"; |
1317 | 33 |
print "\t.objc_class_name_SDL_QuartzWindow\n"; |
34 |
print "\t.objc_class_name_SDL_QuartzWindowDelegate\n"; |