summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-12-27 08:22:21 +0000
committerNicholas Clark <nick@ccl4.org>2010-12-27 08:22:21 +0000
commit2f9970be002ee78a22fc687876139eedc9eb3a65 (patch)
tree675d2ea2057c047a2331d7dc73c254b27f1ab0c3 /proto.h
parent20cf1f79230fba6e0a6ba5053785e5fc841ee053 (diff)
downloadperl-2f9970be002ee78a22fc687876139eedc9eb3a65.tar.gz
Convert Perl_do_chomp() to the same prototype as Perl_do_chop().
Pass in an SV to hold the count, rather than returning the count.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/proto.h b/proto.h
index c4df3e20e2..1ee666e4cf 100644
--- a/proto.h
+++ b/proto.h
@@ -707,10 +707,11 @@ PERL_CALLCONV int Perl_do_binmode(pTHX_ PerlIO *fp, int iotype, int mode)
#define PERL_ARGS_ASSERT_DO_BINMODE \
assert(fp)
-PERL_CALLCONV I32 Perl_do_chomp(pTHX_ SV* sv)
- __attribute__nonnull__(pTHX_1);
+PERL_CALLCONV void Perl_do_chomp(pTHX_ SV *count, SV *sv)
+ __attribute__nonnull__(pTHX_1)
+ __attribute__nonnull__(pTHX_2);
#define PERL_ARGS_ASSERT_DO_CHOMP \
- assert(sv)
+ assert(count); assert(sv)
PERL_CALLCONV void Perl_do_chop(pTHX_ SV *astr, SV *sv)
__attribute__nonnull__(pTHX_1)