Change Encode's check arguments to 'bool' so SvTRUE gets used
Nick Ing-Simmons [Thu, 29 Mar 2001 20:56:12 +0000 (20:56 +0000)]
and we don't get undef warnings.

p4raw-id: //depot/perlio@9454

ext/Encode/Encode.xs

index a486939..6e3684e 100644 (file)
@@ -467,10 +467,10 @@ MODULE = Encode           PACKAGE = Encode::XS    PREFIX = Method_
 PROTOTYPES: ENABLE
 
 void
-Method_decode(obj,src,check = 0)
+Method_decode(obj,src,check = FALSE)
 SV *   obj
 SV *   src
-int    check
+bool   check
 CODE:
  {
   encode_t *enc = INT2PTR(encode_t *, SvIV(SvRV(obj)));
@@ -480,10 +480,10 @@ CODE:
  }
 
 void
-Method_encode(obj,src,check = 0)
+Method_encode(obj,src,check = FALSE)
 SV *   obj
 SV *   src
-int    check
+bool   check
 CODE:
  {
   encode_t *enc = INT2PTR(encode_t *, SvIV(SvRV(obj)));