summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-10-06 22:14:45 -0600
committerKarl Williamson <public@khwilliamson.com>2013-10-06 22:18:01 -0600
commit29b43da2723775cbc8877ecd48c8e5aae8f087bc (patch)
tree323ef66b772c2751264997a3e3f242f1748b27eb /perlio.c
parent2f0794f5776553bf2174172a75efcc3dedf4ecd5 (diff)
downloadperl-29b43da2723775cbc8877ecd48c8e5aae8f087bc.tar.gz
Remove PerlIO_sprintf() and PerlIO_vsprintf()
http://markmail.org/message/m6bvkxvqnvjnfgyf
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/perlio.c b/perlio.c
index 2591f89ce9..279b52986c 100644
--- a/perlio.c
+++ b/perlio.c
@@ -5183,36 +5183,6 @@ vfprintf(FILE *fd, char *pat, char *args)
#endif
-#ifndef PerlIO_vsprintf
-int
-PerlIO_vsprintf(char *s, int n, const char *fmt, va_list ap)
-{
- dTHX;
- const int val = my_vsnprintf(s, n > 0 ? n : 0, fmt, ap);
- PERL_UNUSED_CONTEXT;
-
-#ifndef PERL_MY_VSNPRINTF_GUARDED
- if (val < 0 || (n > 0 ? val >= n : 0)) {
- Perl_croak(aTHX_ "panic: my_vsnprintf overflow in PerlIO_vsprintf\n");
- }
-#endif
- return val;
-}
-#endif
-
-#ifndef PerlIO_sprintf
-int
-PerlIO_sprintf(char *s, int n, const char *fmt, ...)
-{
- va_list ap;
- int result;
- va_start(ap, fmt);
- result = PerlIO_vsprintf(s, n, fmt, ap);
- va_end(ap);
- return result;
-}
-#endif
-
/*
* Local variables:
* c-indentation-style: bsd