comparison src/main/macos/exports/gendef.pl @ 337:9154ec9ca3d2

Explicitly specify the SDL API calling convention (C by default)
author Sam Lantinga <slouken@libsdl.org>
date Thu, 11 Apr 2002 14:35:16 +0000
parents 74212992fb08
children 05b97424225f
comparison
equal deleted inserted replaced
336:745873ea091f 337:9154ec9ca3d2
8 next; 8 next;
9 } 9 }
10 $printed_header = 0; 10 $printed_header = 0;
11 $file =~ s,.*/,,; 11 $file =~ s,.*/,,;
12 while (<FILE>) { 12 while (<FILE>) {
13 if ( /DECLSPEC.*\s\**([^\s\(]+)\(/ ) { 13 if ( /DECLSPEC.*SDLCALL ([^\s\(]+)/ ) {
14 print "\t$1\n";
15 } elsif ( /DECLSPEC.*\s\**([^\s\(]+)$/ ) {
16 print "\t$1\n"; 14 print "\t$1\n";
17 } 15 }
18 } 16 }
19 close(FILE); 17 close(FILE);
20 } 18 }