diff options
author | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 2000-12-05 14:55:16 +0000 |
---|---|---|
committer | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 2000-12-05 14:55:16 +0000 |
commit | f20133967081bfd37aa4d7c1b28e39ffcc65a106 (patch) | |
tree | 575c35fe717371fb58c7a7a1ab15dad8e0201391 /helpers | |
parent | 0e1752c78a14c015ca340cbcf147587431b6fd3b (diff) | |
download | libapr-f20133967081bfd37aa4d7c1b28e39ffcc65a106.tar.gz |
Handle nested macros properly when generating export list.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60895 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/make_export.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/helpers/make_export.pl b/helpers/make_export.pl index 461fab93e..7f2be6931 100755 --- a/helpers/make_export.pl +++ b/helpers/make_export.pl @@ -18,6 +18,7 @@ while ($srcfile = shift(@ARGV)) { my $line; my $count; my $found; + my @macro_stack; open (FILE, $srcfile) || die "Can't open $srcfile\n"; # print STDERR "Reading \"$srcfile\"\n"; @@ -34,6 +35,7 @@ while ($srcfile = shift(@ARGV)) { if (/\#if(def)? (APR_.*)/) { $count++; $found++; + push @macro_stack, $macro; $macro = $2; $line .= "$macro\n"; next; @@ -54,6 +56,7 @@ while ($srcfile = shift(@ARGV)) { if ($count > 0) { $count--; $line .= "\/$macro\n"; + $macro = pop @macro_stack; } if ($found == $count + 1) { $found--; |