comparison src/main/macos/exports/gendef.pl @ 1317:6c7b69218276

Updated exports
author Sam Lantinga <slouken@libsdl.org>
date Wed, 01 Feb 2006 09:01:12 +0000
parents 02759105b989
children 7a610f25c12f
comparison
equal deleted inserted replaced
1316:0781906086fa 1317:6c7b69218276
1 #!/usr/bin/perl 1 #!/usr/bin/perl
2 # 2 #
3 # Program to take a set of header files and generate DLL export definitions 3 # Program to take a set of header files and generate DLL export definitions
4
5 # Special exports to ignore for this platform
6 $exclude{"SDL_CreateThread_Core"} = 1;
4 7
5 while ( ($file = shift(@ARGV)) ) { 8 while ( ($file = shift(@ARGV)) ) {
6 if ( ! defined(open(FILE, $file)) ) { 9 if ( ! defined(open(FILE, $file)) ) {
7 warn "Couldn't open $file: $!\n"; 10 warn "Couldn't open $file: $!\n";
8 next; 11 next;
9 } 12 }
10 $printed_header = 0; 13 $printed_header = 0;
11 $file =~ s,.*/,,; 14 $file =~ s,.*/,,;
12 while (<FILE>) { 15 while (<FILE>) {
13 if ( / DECLSPEC.* SDLCALL ([^\s\(]+)/ ) { 16 if ( / DECLSPEC.* SDLCALL ([^\s\(]+)/ ) {
14 print "\t$1\n"; 17 if ( not $exclude{$1} ) {
18 print "\t$1\n";
19 }
15 } 20 }
16 } 21 }
17 close(FILE); 22 close(FILE);
18 } 23 }
19 # Special exports not in the header files 24
25 # Special exports to include for this platform
20 print "\tSDL_InitQuickDraw\n"; 26 print "\tSDL_InitQuickDraw\n";