X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/796b6530911f5ebd6a26275873610304e63d5d19..f641f1778d642cf8e366b2d56208c94f27710f49:/sv.c diff --git a/sv.c b/sv.c index bcb031a..aec1568 100644 --- a/sv.c +++ b/sv.c @@ -2420,7 +2420,7 @@ S_sv_2iuv_common(pTHX_ SV *const sv) =for apidoc sv_2iv_flags Return the integer value of an SV, doing any necessary string -conversion. If C includes C, does an C first. +conversion. If C has the C bit set, does an C first. Normally used via the C and C macros. =cut @@ -2516,7 +2516,7 @@ Perl_sv_2iv_flags(pTHX_ SV *const sv, const I32 flags) =for apidoc sv_2uv_flags Return the unsigned integer value of an SV, doing any necessary string -conversion. If C includes C, does an C first. +conversion. If C has the C bit set, does an C first. Normally used via the C and C macros. =cut @@ -2599,7 +2599,7 @@ Perl_sv_2uv_flags(pTHX_ SV *const sv, const I32 flags) =for apidoc sv_2nv_flags Return the num value of an SV, doing any necessary string or integer -conversion. If C includes C, does an C first. +conversion. If C has the C bit set, does an C first. Normally used via the C and C macros. =cut @@ -2925,7 +2925,7 @@ S_infnan_2pv(NV nv, char* buffer, size_t maxlen, char plus) { =for apidoc sv_2pv_flags Returns a pointer to the string value of an SV, and sets C<*lp> to its length. -If flags includes C, does an C first. Coerces C to a +If flags has the C bit set, does an C first. Coerces C to a string if necessary. Normally invoked via the C macro. C and C usually end up here too. @@ -3236,7 +3236,7 @@ Like C, but doesn't invoke get magic first. =for apidoc sv_copypv_flags Implementation of C and C. Calls get magic iff flags -include C. +has the C bit set. =cut */ @@ -4983,8 +4983,8 @@ so that pointer should not be freed or used by the programmer after giving it to C, and neither should any pointers from "behind" that pointer (e.g. ptr + 1) be used. -If C is true, will call C. If -C is true, then C must be C, +If S> is true, will call C. If +S & SV_HAS_TRAILING_NUL>> is true, then C must be C, and the realloc will be skipped (i.e. the buffer is actually at least 1 byte longer than C, and already meets the requirements for storing in C). @@ -5408,8 +5408,8 @@ and C>. Concatenates the string from SV C onto the end of the string in SV C. If C is null, does nothing; otherwise modifies only C. -If C include C bit set, will call C on both SVs if -appropriate. If C include C, C will be called on +If C has the C bit set, will call C on both SVs if +appropriate. If C has the C bit set, C will be called on the modified SV afterward, if appropriate. C, C, and C are implemented in terms of this function. @@ -6838,7 +6838,7 @@ Perl_sv_newref(pTHX_ SV *const sv) Decrement an SV's reference count, and if it drops to zero, call C to invoke destructors and free up any memory used by -the body; finally, deallocate the SV's head itself. +the body; finally, deallocating the SV's head itself. Normally called via a wrapper macro C. =cut @@ -7630,14 +7630,14 @@ S_assert_uft8_cache_coherent(pTHX_ const char *const func, STRLEN from_cache, =for apidoc sv_eq Returns a boolean indicating whether the strings in the two SVs are -identical. Is UTF-8 and C<'use bytes'> aware, handles get magic, and will +identical. Is UTF-8 and S> aware, handles get magic, and will coerce its args to strings if necessary. =for apidoc sv_eq_flags Returns a boolean indicating whether the strings in the two SVs are identical. Is UTF-8 and S> aware and coerces its args to strings -if necessary. If C includes C, it handles get-magic, too. +if necessary. If the flags has the C bit set, it handles get-magic, too. =cut */ @@ -7730,7 +7730,7 @@ coerce its args to strings if necessary. See also C>. Compares the strings in two SVs. Returns -1, 0, or 1 indicating whether the string in C is less than, equal to, or greater than the string in C. Is UTF-8 and S> aware and will coerce its args to strings -if necessary. If the flags includes C, it handles get magic. See +if necessary. If the flags has the C bit set, it handles get magic. See also C>. =cut @@ -9825,7 +9825,7 @@ can't cope with complex macro expressions. Always use the macro instead. =for apidoc sv_pvn_force_flags Get a sensible string out of the SV somehow. -If C has C bit set, will C on C if +If C has the C bit set, will C on C if appropriate, else not. C and C are implemented in terms of this function. You normally want to use the various wrapper macros instead: see @@ -10817,7 +10817,7 @@ When running with taint checks enabled, indicates via C if results are untrustworthy (often due to the use of locales). -If called as C or flags include C, calls get magic. +If called as C or flags has the C bit set, calls get magic. Usually used via one of its frontends C and C. @@ -12931,7 +12931,11 @@ Perl_fp_dup(pTHX_ PerlIO *const fp, const char type, CLONE_PARAMS *const param) return ret; /* create anew and remember what it is */ +#ifdef __amigaos4__ + ret = PerlIO_fdupopen(aTHX_ fp, param, PERLIO_DUP_CLONE|PERLIO_DUP_FD); +#else ret = PerlIO_fdupopen(aTHX_ fp, param, PERLIO_DUP_CLONE); +#endif ptr_table_store(PL_ptr_table, fp, ret); return ret; } @@ -14404,9 +14408,11 @@ perl_clone(PerlInterpreter *proto_perl, UV flags) /* perlhost.h so we need to call into it to clone the host, CPerlHost should have a c interface, sky */ +#if !defined(__amigaos4__) if (flags & CLONEf_CLONE_HOST) { return perl_clone_host(proto_perl,flags); } +#endif return perl_clone_using(proto_perl, flags, proto_perl->IMem, proto_perl->IMemShared, @@ -15359,7 +15365,7 @@ Perl_sv_recode_to_utf8(pTHX_ SV *sv, SV *encoding) C is assumed to be an C object, the PV of C is assumed to be octets in that encoding and decoding the input starts from the position which S> pointed to. C will be -concatenated the decoded UTF-8 string from C. Decoding will terminate +concatenated with the decoded UTF-8 string from C. Decoding will terminate when the string C appears in decoding output or the input ends on the PV of C. The value which C points will be modified to the last input position on C.