view src/main/win32/exports/gendef.pl @ 1351:82c38796c7ca

Changed X11 header order so it works on Solaris. Fixes Bugzilla #138. --ryan.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 08 Feb 2006 20:29:12 +0000
parents 6c7b69218276
children
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;
	}
	$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_RegisterApp\n";
print "\tSDL_SetModuleHandle\n";
print "\tSDL_UnregisterApp\n";