Mercurial > sdl-ios-xcode
annotate src/main/macos/exports/gendef.pl @ 1506:dc057a602e98
Added SDL_iconv.c to the Visual C++ projects
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 13 Mar 2006 01:40:49 +0000 |
parents | 5f5a74d29d18 |
children | 4d241ea8a1cd |
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 $printed_header = 0; | |
14 $file =~ s,.*/,,; | |
15 while (<FILE>) { | |
930
02759105b989
Date: Fri, 20 Aug 2004 08:31:20 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
345
diff
changeset
|
16 if ( / DECLSPEC.* SDLCALL ([^\s\(]+)/ ) { |
1317 | 17 if ( not $exclude{$1} ) { |
18 print "\t$1\n"; | |
19 } | |
0 | 20 } |
21 } | |
22 close(FILE); | |
23 } | |
1317 | 24 |
25 # Special exports to include for this platform | |
1424
7a610f25c12f
Updated MacOS Classic MPW build
Sam Lantinga <slouken@libsdl.org>
parents:
1317
diff
changeset
|
26 print "\tSDL_putenv\n"; |
7a610f25c12f
Updated MacOS Classic MPW build
Sam Lantinga <slouken@libsdl.org>
parents:
1317
diff
changeset
|
27 print "\tSDL_getenv\n"; |
7a610f25c12f
Updated MacOS Classic MPW build
Sam Lantinga <slouken@libsdl.org>
parents:
1317
diff
changeset
|
28 print "\tSDL_qsort\n"; |
7a610f25c12f
Updated MacOS Classic MPW build
Sam Lantinga <slouken@libsdl.org>
parents:
1317
diff
changeset
|
29 print "\tSDL_revcpy\n"; |
7a610f25c12f
Updated MacOS Classic MPW build
Sam Lantinga <slouken@libsdl.org>
parents:
1317
diff
changeset
|
30 print "\tSDL_strlcpy\n"; |
7a610f25c12f
Updated MacOS Classic MPW build
Sam Lantinga <slouken@libsdl.org>
parents:
1317
diff
changeset
|
31 print "\tSDL_strlcat\n"; |
7a610f25c12f
Updated MacOS Classic MPW build
Sam Lantinga <slouken@libsdl.org>
parents:
1317
diff
changeset
|
32 print "\tSDL_strdup\n"; |
7a610f25c12f
Updated MacOS Classic MPW build
Sam Lantinga <slouken@libsdl.org>
parents:
1317
diff
changeset
|
33 print "\tSDL_strrev\n"; |
7a610f25c12f
Updated MacOS Classic MPW build
Sam Lantinga <slouken@libsdl.org>
parents:
1317
diff
changeset
|
34 print "\tSDL_strupr\n"; |
7a610f25c12f
Updated MacOS Classic MPW build
Sam Lantinga <slouken@libsdl.org>
parents:
1317
diff
changeset
|
35 print "\tSDL_strlwr\n"; |
7a610f25c12f
Updated MacOS Classic MPW build
Sam Lantinga <slouken@libsdl.org>
parents:
1317
diff
changeset
|
36 print "\tSDL_ltoa\n"; |
7a610f25c12f
Updated MacOS Classic MPW build
Sam Lantinga <slouken@libsdl.org>
parents:
1317
diff
changeset
|
37 print "\tSDL_ultoa\n"; |
7a610f25c12f
Updated MacOS Classic MPW build
Sam Lantinga <slouken@libsdl.org>
parents:
1317
diff
changeset
|
38 print "\tSDL_snprintf\n"; |
7a610f25c12f
Updated MacOS Classic MPW build
Sam Lantinga <slouken@libsdl.org>
parents:
1317
diff
changeset
|
39 print "\tSDL_vsnprintf\n"; |
0 | 40 print "\tSDL_InitQuickDraw\n"; |