Mercurial > sdl-ios-xcode
view src/main/macos/exports/gendef.pl @ 1448:9a845c7b8b35
Build both the .tar.gz and .zip archives when creating a CVS snapshot.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 27 Feb 2006 04:44:31 +0000 |
parents | 5f5a74d29d18 |
children | 4d241ea8a1cd |
line wrap: on
line source
#!/usr/bin/perl # # Program to take a set of header files and generate DLL export definitions # Special exports to ignore for this platform $exclude{"SDL_CreateThread_Core"} = 1; while ( ($file = shift(@ARGV)) ) { if ( ! defined(open(FILE, $file)) ) { warn "Couldn't open $file: $!\n"; next; } $printed_header = 0; $file =~ s,.*/,,; while (<FILE>) { if ( / DECLSPEC.* SDLCALL ([^\s\(]+)/ ) { if ( not $exclude{$1} ) { print "\t$1\n"; } } } close(FILE); } # Special exports to include for this platform print "\tSDL_putenv\n"; print "\tSDL_getenv\n"; print "\tSDL_qsort\n"; print "\tSDL_revcpy\n"; print "\tSDL_strlcpy\n"; print "\tSDL_strlcat\n"; print "\tSDL_strdup\n"; print "\tSDL_strrev\n"; print "\tSDL_strupr\n"; print "\tSDL_strlwr\n"; print "\tSDL_ltoa\n"; print "\tSDL_ultoa\n"; print "\tSDL_snprintf\n"; print "\tSDL_vsnprintf\n"; print "\tSDL_InitQuickDraw\n";