projects
/
sdlgit/SDL_perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
f14bf6b
)
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
patch
|
blob
|
blame
|
history
diff --git
a/scripts/auto_constants.pl
b/scripts/auto_constants.pl
index
84dd2e9
..
ce3418c
100644
(file)
--- a/
scripts/auto_constants.pl
+++ b/
scripts/auto_constants.pl
@@
-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_/)