all .h files parsed now... Split breaks here look at MUSTLOCK
Kartik Thakore [Wed, 11 Nov 2009 19:28:05 +0000 (14:28 -0500)]
scripts/auto_constants.pl

index 84dd2e9..ce3418c 100644 (file)
@@ -8,12 +8,12 @@ my $head_loc = `sdl-config --cflags`;
 print "# Getting header constants from $head_loc\n";
 
 
-my @header = qw/ SDL.h SDL_events.h /;
+my @header = <$head_loc/*>;
 
 foreach (@header)
 {
        print "# from $_:\n";
-       open FH, "$head_loc/$_";
+       open FH, $_;
        while(<FH>)
        {
                if($_ =~ /#define SDL_/)