diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-12-27 08:22:21 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-12-27 08:22:21 +0000 |
commit | 2f9970be002ee78a22fc687876139eedc9eb3a65 (patch) | |
tree | 675d2ea2057c047a2331d7dc73c254b27f1ab0c3 /proto.h | |
parent | 20cf1f79230fba6e0a6ba5053785e5fc841ee053 (diff) | |
download | perl-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.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) |