RE: g++ compile and make test 100%
authorRobin Barker <RMBarker@cpan.org>
Wed, 11 Oct 2006 15:29:43 +0000 (16:29 +0100)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Wed, 11 Oct 2006 15:01:52 +0000 (15:01 +0000)
From: "Robin Barker" <Robin.Barker@npl.co.uk>
Message-ID: <2C2E01334A940D4792B3E115F95B7226120A65@exchsvr1.npl.ad.local>

p4raw-id: //depot/perl@28997

ext/NDBM_File/typemap

index c88725b..b07695d 100644 (file)
@@ -25,18 +25,18 @@ T_DATUM_V
            $var.dsize = (int)PL_na;
        }
        else {
-           $var.dptr = \"\";
+           $var.dptr = (char *)\"\";
            $var.dsize = 0;
        }
 T_GDATUM
        UNIMPLEMENTED
 OUTPUT
 T_DATUM_K
-       sv_setpvn($arg, $var.dptr, $var.dsize);
-       DBM_ckFilter($arg, filter_fetch_key,\"filter_fetch_key\");
+       sv_setpvn($arg, (char *)$var.dptr, $var.dsize);
+       DBM_ckFilter($arg, filter_fetch_key, \"filter_fetch_key\");
 T_DATUM_V
-       sv_setpvn($arg, $var.dptr, $var.dsize);
-       DBM_ckFilter($arg, filter_fetch_value,\"filter_fetch_value\");
+       sv_setpvn($arg, (char *)$var.dptr, $var.dsize);
+       DBM_ckFilter($arg, filter_fetch_value, \"filter_fetch_value\");
 T_GDATUM
        sv_usepvn($arg, $var.dptr, $var.dsize);
 T_PTROBJ