Mercurial > sdl-ios-xcode
annotate src/main/win32/exports/gendef.pl @ 1433:bb6839704ed6
SDL_windows.h is no longer necessary
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 25 Feb 2006 22:18:25 +0000 |
parents | 6c7b69218276 |
children |
rev | line source |
---|---|
0 | 1 #!/usr/bin/perl |
2 # | |
3 # Program to take a set of header files and generate DLL export definitions | |
4 | |
1317 | 5 # Special exports to ignore for this platform |
6 $exclude{"SDL_CreateThread_Core"} = 1; | |
7 | |
0 | 8 while ( ($file = shift(@ARGV)) ) { |
9 if ( ! defined(open(FILE, $file)) ) { | |
10 warn "Couldn't open $file: $!\n"; | |
11 next; | |
12 } | |
13 $file =~ s,.*/,,; | |
14 while (<FILE>) { | |
930
02759105b989
Date: Fri, 20 Aug 2004 08:31:20 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
345
diff
changeset
|
15 if ( / DECLSPEC.* SDLCALL ([^\s\(]+)/ ) { |
1317 | 16 if ( not $exclude{$1} ) { |
17 print "\t$1\n"; | |
18 } | |
0 | 19 } |
20 } | |
21 close(FILE); | |
22 } | |
1317 | 23 |
24 # Special exports to include for this platform | |
0 | 25 print "\tSDL_RegisterApp\n"; |
145
29a638dc26db
Applied David MacCormack's patch to fix SDL_WINDOWID on Windows,
Sam Lantinga <slouken@libsdl.org>
parents:
0
diff
changeset
|
26 print "\tSDL_SetModuleHandle\n"; |
1317 | 27 print "\tSDL_UnregisterApp\n"; |