summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2010-08-19 13:20:59 -0500
committerSteve Peters <steve@fisharerojo.org>2010-08-19 13:20:59 -0500
commitd16d4b10300b35e2d4d858a3e23cff975bc713fe (patch)
tree7fca918e55cb87b66627384dff917442b7299a8a /ext
parenta9f6cb1f22586fafc61c53a46e01a0a4452dbbbb (diff)
downloadperl-d16d4b10300b35e2d4d858a3e23cff975bc713fe.tar.gz
Moved prototype check to XS code, allowing the .pm file change from yesterday
to be removed. Thanks to Rafael for pointing out prototypes in XS.
Diffstat (limited to 'ext')
-rw-r--r--ext/I18N-Langinfo/Langinfo.pm4
-rw-r--r--ext/I18N-Langinfo/Langinfo.xs3
2 files changed, 2 insertions, 5 deletions
diff --git a/ext/I18N-Langinfo/Langinfo.pm b/ext/I18N-Langinfo/Langinfo.pm
index 62c93e6454..f7bac77347 100644
--- a/ext/I18N-Langinfo/Langinfo.pm
+++ b/ext/I18N-Langinfo/Langinfo.pm
@@ -100,10 +100,6 @@ sub AUTOLOAD {
bootstrap I18N::Langinfo $VERSION;
-sub langinfo(_) {
- return internal_langinfo(shift);
-}
-
1;
__END__
diff --git a/ext/I18N-Langinfo/Langinfo.xs b/ext/I18N-Langinfo/Langinfo.xs
index 2cdc50c986..62f358023d 100644
--- a/ext/I18N-Langinfo/Langinfo.xs
+++ b/ext/I18N-Langinfo/Langinfo.xs
@@ -16,8 +16,9 @@ PROTOTYPES: ENABLE
INCLUDE: const-xs.inc
SV*
-internal_langinfo(code)
+langinfo(code)
int code
+ PROTOTYPE: _
CODE:
#ifdef HAS_NL_LANGINFO
{