Revert "Moved prototype check to XS code, allowing the .pm file change from yesterday"
authorSteffen Mueller <smueller@cpan.org>
Sun, 6 Feb 2011 16:57:21 +0000 (17:57 +0100)
committerSteffen Mueller <smueller@cpan.org>
Tue, 12 Jul 2011 18:53:49 +0000 (20:53 +0200)
This reverts commit d16d4b10300b35e2d4d858a3e23cff975bc713fe. It
requires the _ prototype support in ExtUtils::ParseXS and we need to
temporarily disable that. Will be reapplied later.

ext/I18N-Langinfo/Langinfo.pm
ext/I18N-Langinfo/Langinfo.xs

index a3bf3b5..4bac102 100644 (file)
@@ -72,10 +72,14 @@ our @EXPORT_OK = qw(
        YESSTR
 );
 
-our $VERSION = '0.08';
+our $VERSION = '0.08_01';
 
 XSLoader::load();
 
+sub langinfo(_) {
+    return internal_langinfo(shift);
+}
+
 1;
 __END__
 
index 8b1fd5a..f107d0e 100644 (file)
@@ -18,9 +18,8 @@ PROTOTYPES: ENABLE
 INCLUDE: const-xs.inc
 
 SV*
-langinfo(code)
+internal_langinfo(code)
        int     code
-  PROTOTYPE: _
   CODE:
 #ifdef HAS_NL_LANGINFO
        RETVAL = newSVpv(nl_langinfo(code), 0);