From: Gurusamy Sarathy <gsar@cpan.org>
Date: Mon, 13 Mar 2000 20:34:38 +0000 (+0000)
Subject: ignore const for the purposes of typemaps (from Hugo van der Sanden)
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ea5e7566745834b0ad6566d9ab0445e5381c11f5;p=p5sagit%2Fp5-mst-13.2.git

ignore const for the purposes of typemaps (from Hugo van der Sanden)

p4raw-id: //depot/perl@5708
---

diff --git a/lib/ExtUtils/xsubpp b/lib/ExtUtils/xsubpp
index 96e1bb4..085e852 100755
--- a/lib/ExtUtils/xsubpp
+++ b/lib/ExtUtils/xsubpp
@@ -1544,6 +1544,7 @@ sub generate_init {
 	unless defined($type_kind{$type});
 
     ($ntype = $type) =~ s/\s*\*/Ptr/g;
+    $ntype =~ s/^\s*const\b\s*//;
     ($subtype = $ntype) =~ s/(?:Array)?(?:Ptr)?$//;
     $tk = $type_kind{$type};
     $tk =~ s/OBJ$/REF/ if $func_name =~ /DESTROY$/;