Mercurial > sdl-ios-xcode
annotate src/main/beos/exports/genexp.pl @ 1407:0c6941483cc6
Whoops, forgot to check in this fix
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 21 Feb 2006 18:20:10 +0000 |
parents | 6c7b69218276 |
children |
rev | line source |
---|---|
0 | 1 #!/usr/bin/perl |
2 # | |
3 # Program to take a set of header files and generate MWCC export definitions | |
4 | |
1317 | 5 # Special exports to ignore for this platform |
6 $exclude{"SDL_putenv"} = 1; | |
7 $exclude{"SDL_getenv"} = 1; | |
8 $exclude{"SDL_CreateThread_Core"} = 1; | |
9 | |
0 | 10 while ( ($file = shift(@ARGV)) ) { |
11 if ( ! defined(open(FILE, $file)) ) { | |
12 warn "Couldn't open $file: $!\n"; | |
13 next; | |
14 } | |
15 $file =~ s,.*/,,; | |
16 while (<FILE>) { | |
930
02759105b989
Date: Fri, 20 Aug 2004 08:31:20 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
345
diff
changeset
|
17 if ( / DECLSPEC.* SDLCALL ([^\s\(]+)/ ) { |
1317 | 18 if ( not $exclude{$1} ) { |
19 print "_$1\n"; | |
20 } | |
0 | 21 } |
22 } | |
23 close(FILE); | |
24 } | |
1317 | 25 |
26 # Special exports to include for this platform |