summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-01-12 23:11:16 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-01-12 23:11:16 +0000
commit90851df92fb26217b0f1c0286baca234cc285e52 (patch)
treec1bd38f79194f4df82d18cd4ab08d893e1eeb3c6 /utils
parent4a5826852ee095d233fab172b67097a331a21e42 (diff)
downloadperl-90851df92fb26217b0f1c0286baca234cc285e52.tar.gz
Make h2ph recognize (and skip) const and __const__ in C function
prototypes. This makes it produce better files on linux-sparc64. p4raw-id: //depot/perl@26812
Diffstat (limited to 'utils')
-rw-r--r--utils/h2ph.PL2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/h2ph.PL b/utils/h2ph.PL
index e46ac208fc..78e10a4637 100644
--- a/utils/h2ph.PL
+++ b/utils/h2ph.PL
@@ -354,6 +354,7 @@ while (defined (my $file = next_file())) {
use re "eval";
my $typelist = join '|', keys %isatype;
$new =~ s['
+ (?:(?:__)?const(?:__)?\s+)?
(?:(?:un)?signed\s+)?
(?:long\s+)?
(?:$typelist)\s+
@@ -362,6 +363,7 @@ while (defined (my $file = next_file())) {
']
[my \$$1]gx;
$new =~ s['
+ (?:(?:__)?const(?:__)?\s+)?
(?:(?:un)?signed\s+)?
(?:long\s+)?
(?:$typelist)\s+