Mercurial > sdl-ios-xcode
view src/main/beos/exports/genexp.pl @ 1501:73dc5d39bbf8
Added UTF-8 <-> UTF-16 <-> UTF-32 <-> UCS-2 <-> UCS-4 conversion capability
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 13 Mar 2006 01:08:00 +0000 |
parents | 6c7b69218276 |
children |
line wrap: on
line source
#!/usr/bin/perl # # Program to take a set of header files and generate MWCC export definitions # Special exports to ignore for this platform $exclude{"SDL_putenv"} = 1; $exclude{"SDL_getenv"} = 1; $exclude{"SDL_CreateThread_Core"} = 1; while ( ($file = shift(@ARGV)) ) { if ( ! defined(open(FILE, $file)) ) { warn "Couldn't open $file: $!\n"; next; } $file =~ s,.*/,,; while (<FILE>) { if ( / DECLSPEC.* SDLCALL ([^\s\(]+)/ ) { if ( not $exclude{$1} ) { print "_$1\n"; } } } close(FILE); } # Special exports to include for this platform