From: Rafael Garcia-Suarez Date: Mon, 31 Oct 2005 08:54:18 +0000 (+0000) Subject: Regenerate perlapi.pod X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9244d4ad8d4fc2dc937da371d09c6041e465517d;p=p5sagit%2Fp5-mst-13.2.git Regenerate perlapi.pod p4raw-id: //depot/perl@25913 --- diff --git a/pod/perlapi.pod b/pod/perlapi.pod index 2bee300..38c5daf 100644 --- a/pod/perlapi.pod +++ b/pod/perlapi.pod @@ -742,6 +742,276 @@ Found in file perl.c =back +=head1 Functions in file mathoms.c + + +=over 8 + +=item gv_fetchmethod +X + +See L. + + GV* gv_fetchmethod(HV* stash, const char* name) + +=for hackers +Found in file mathoms.c + +=item sv_2pvbyte_nolen +X + +Return a pointer to the byte-encoded representation of the SV. +May cause the SV to be downgraded from UTF-8 as a side-effect. + +Usually accessed via the C macro. + + char* sv_2pvbyte_nolen(SV* sv) + +=for hackers +Found in file mathoms.c + +=item sv_2pvutf8_nolen +X + +Return a pointer to the UTF-8-encoded representation of the SV. +May cause the SV to be upgraded to UTF-8 as a side-effect. + +Usually accessed via the C macro. + + char* sv_2pvutf8_nolen(SV* sv) + +=for hackers +Found in file mathoms.c + +=item sv_2pv_nolen +X + +Like C, but doesn't return the length too. You should usually +use the macro wrapper C instead. + char* sv_2pv_nolen(SV* sv) + +=for hackers +Found in file mathoms.c + +=item sv_catpvn_mg +X + +Like C, but also handles 'set' magic. + + void sv_catpvn_mg(SV *sv, const char *ptr, STRLEN len) + +=for hackers +Found in file mathoms.c + +=item sv_catsv_mg +X + +Like C, but also handles 'set' magic. + + void sv_catsv_mg(SV *dstr, SV *sstr) + +=for hackers +Found in file mathoms.c + +=item sv_force_normal +X + +Undo various types of fakery on an SV: if the PV is a shared string, make +a private copy; if we're a ref, stop refing; if we're a glob, downgrade to +an xpvmg. See also C. + + void sv_force_normal(SV *sv) + +=for hackers +Found in file mathoms.c + +=item sv_iv +X + +A private implementation of the C macro for compilers which can't +cope with complex macro expressions. Always use the macro instead. + + IV sv_iv(SV* sv) + +=for hackers +Found in file mathoms.c + +=item sv_nolocking +X + +Dummy routine which "locks" an SV when there is no locking module present. +Exists to avoid test for a NULL function pointer and because it could +potentially warn under some level of strict-ness. + +"Superseded" by sv_nosharing(). + + void sv_nolocking(SV *) + +=for hackers +Found in file mathoms.c + +=item sv_nounlocking +X + +Dummy routine which "unlocks" an SV when there is no locking module present. +Exists to avoid test for a NULL function pointer and because it could +potentially warn under some level of strict-ness. + +"Superseded" by sv_nosharing(). + + void sv_nounlocking(SV *) + +=for hackers +Found in file mathoms.c + +=item sv_nv +X + +A private implementation of the C macro for compilers which can't +cope with complex macro expressions. Always use the macro instead. + + NV sv_nv(SV* sv) + +=for hackers +Found in file mathoms.c + +=item sv_pv +X + +Use the C macro instead + + char* sv_pv(SV *sv) + +=for hackers +Found in file mathoms.c + +=item sv_pvbyte +X + +Use C instead. + + char* sv_pvbyte(SV *sv) + +=for hackers +Found in file mathoms.c + +=item sv_pvbyten +X + +A private implementation of the C macro for compilers +which can't cope with complex macro expressions. Always use the macro +instead. + + char* sv_pvbyten(SV *sv, STRLEN *len) + +=for hackers +Found in file mathoms.c + +=item sv_pvn +X + +A private implementation of the C macro for compilers which can't +cope with complex macro expressions. Always use the macro instead. + + char* sv_pvn(SV *sv, STRLEN *len) + +=for hackers +Found in file mathoms.c + +=item sv_pvutf8 +X + +Use the C macro instead + + char* sv_pvutf8(SV *sv) + +=for hackers +Found in file mathoms.c + +=item sv_pvutf8n +X + +A private implementation of the C macro for compilers +which can't cope with complex macro expressions. Always use the macro +instead. + + char* sv_pvutf8n(SV *sv, STRLEN *len) + +=for hackers +Found in file mathoms.c + +=item sv_taint +X + +Taint an SV. Use C instead. + void sv_taint(SV* sv) + +=for hackers +Found in file mathoms.c + +=item sv_unref +X + +Unsets the RV status of the SV, and decrements the reference count of +whatever was being referenced by the RV. This can almost be thought of +as a reversal of C. This is C with the C +being zero. See C. + + void sv_unref(SV* sv) + +=for hackers +Found in file mathoms.c + +=item sv_uv +X + +A private implementation of the C macro for compilers which can't +cope with complex macro expressions. Always use the macro instead. + + UV sv_uv(SV* sv) + +=for hackers +Found in file mathoms.c + +=item utf8n_to_uvchr +X + +flags + +Returns the native character value of the first character in the string +C +which is assumed to be in UTF-8 encoding; C will be set to the +length, in bytes, of that character. + +Allows length and flags to be passed to low level routine. + + UV utf8n_to_uvchr(const U8 *s, STRLEN curlen, STRLEN *retlen, U32 flags) + +=for hackers +Found in file mathoms.c + +=item uvchr_to_utf8 +X + +Adds the UTF-8 representation of the Native codepoint C to the end +of the string C; C should be have at least C free +bytes available. The return value is the pointer to the byte after the +end of the new character. In other words, + + d = uvchr_to_utf8(d, uv); + +is the recommended wide native character-aware way of saying + + *(d++) = uv; + + U8* uvchr_to_utf8(U8 *d, UV uv) + +=for hackers +Found in file mathoms.c + + +=back + =head1 Functions in file pp_pack.c @@ -897,16 +1167,6 @@ obtained from the GV with the C macro. =for hackers Found in file gv.c -=item gv_fetchmethod -X - -See L. - - GV* gv_fetchmethod(HV* stash, const char* name) - -=for hackers -Found in file gv.c - =item gv_fetchmethod_autoload X @@ -1955,6 +2215,18 @@ Fill the sv with current working directory =for hackers Found in file util.c +=item my_sprintf +X + +The C library C, wrapped if necessary, to ensure that it will return +the length of the string written to the buffer. Only rare pre-ANSI systems +need the wrapper function - usually this is a direct call to C. + + int my_sprintf(char *buffer, const char *pat, ...) + +=for hackers +Found in file util.c + =item new_version X @@ -2083,42 +2355,19 @@ wrapper for C). =for hackers Found in file handy.h -=item sv_nolocking -X - -Dummy routine which "locks" an SV when there is no locking module present. -Exists to avoid test for a NULL function pointer and because it could potentially warn under -some level of strict-ness. - - void sv_nolocking(SV *) - -=for hackers -Found in file util.c - =item sv_nosharing X Dummy routine which "shares" an SV when there is no sharing module present. -Exists to avoid test for a NULL function pointer and because it could potentially warn under -some level of strict-ness. +Or "locks" it. Or "unlocks" it. In other words, ignores its single SV argument. +Exists to avoid test for a NULL function pointer and because it could +potentially warn under some level of strict-ness. void sv_nosharing(SV *) =for hackers Found in file util.c -=item sv_nounlocking -X - -Dummy routine which "unlocks" an SV when there is no locking module present. -Exists to avoid test for a NULL function pointer and because it could potentially warn under -some level of strict-ness. - - void sv_nounlocking(SV *) - -=for hackers -Found in file util.c - =item upg_version X @@ -4351,45 +4600,6 @@ Usually accessed via the C macro. =for hackers Found in file sv.c -=item sv_2pvbyte_nolen -X - -Return a pointer to the byte-encoded representation of the SV. -May cause the SV to be downgraded from UTF-8 as a side-effect. - -Usually accessed via the C macro. - - char* sv_2pvbyte_nolen(SV* sv) - -=for hackers -Found in file sv.c - -=item sv_2pvutf8 -X - -Return a pointer to the UTF-8-encoded representation of the SV, and set *lp -to its length. May cause the SV to be upgraded to UTF-8 as a side-effect. - -Usually accessed via the C macro. - - char* sv_2pvutf8(SV* sv, STRLEN* lp) - -=for hackers -Found in file sv.c - -=item sv_2pvutf8_nolen -X - -Return a pointer to the UTF-8-encoded representation of the SV. -May cause the SV to be upgraded to UTF-8 as a side-effect. - -Usually accessed via the C macro. - - char* sv_2pvutf8_nolen(SV* sv) - -=for hackers -Found in file sv.c - =item sv_2pv_flags X @@ -4404,16 +4614,6 @@ usually end up here too. =for hackers Found in file sv.c -=item sv_2pv_nolen -X - -Like C, but doesn't return the length too. You should usually -use the macro wrapper C instead. - char* sv_2pv_nolen(SV* sv) - -=for hackers -Found in file sv.c - =item sv_2uv_flags X @@ -4515,16 +4715,6 @@ in terms of this function. =for hackers Found in file sv.c -=item sv_catpvn_mg -X - -Like C, but also handles 'set' magic. - - void sv_catpvn_mg(SV *sv, const char *ptr, STRLEN len) - -=for hackers -Found in file sv.c - =item sv_catpvn_nomg X @@ -4570,16 +4760,6 @@ and C are implemented in terms of this function. =for hackers Found in file sv.c -=item sv_catsv_mg -X - -Like C, but also handles 'set' magic. - - void sv_catsv_mg(SV *dstr, SV *sstr) - -=for hackers -Found in file sv.c - =item sv_catsv_nomg X @@ -4712,18 +4892,6 @@ coerce its args to strings if necessary. =for hackers Found in file sv.c -=item sv_force_normal -X - -Undo various types of fakery on an SV: if the PV is a shared string, make -a private copy; if we're a ref, stop refing; if we're a glob, downgrade to -an xpvmg. See also C. - - void sv_force_normal(SV *sv) - -=for hackers -Found in file sv.c - =item sv_force_normal_flags X @@ -4824,17 +4992,6 @@ will return false. =for hackers Found in file sv.c -=item sv_iv -X - -A private implementation of the C macro for compilers which can't -cope with complex macro expressions. Always use the macro instead. - - IV sv_iv(SV* sv) - -=for hackers -Found in file sv.c - =item sv_len X @@ -4933,17 +5090,6 @@ instead. =for hackers Found in file sv.c -=item sv_nv -X - -A private implementation of the C macro for compilers which can't -cope with complex macro expressions. Always use the macro instead. - - NV sv_nv(SV* sv) - -=for hackers -Found in file sv.c - =item sv_pos_b2u X @@ -4970,61 +5116,16 @@ type coercion. =for hackers Found in file sv.c -=item sv_pv -X - -Use the C macro instead - - char* sv_pv(SV *sv) - -=for hackers -Found in file sv.c - -=item sv_pvbyte -X - -Use C instead. - - char* sv_pvbyte(SV *sv) - -=for hackers -Found in file sv.c - -=item sv_pvbyten -X - -A private implementation of the C macro for compilers -which can't cope with complex macro expressions. Always use the macro -instead. - - char* sv_pvbyten(SV *sv, STRLEN *len) - -=for hackers -Found in file sv.c - =item sv_pvbyten_force X -A private implementation of the C macro for compilers -which can't cope with complex macro expressions. Always use the macro -instead. +The backend for the C macro. Always use the macro instead. char* sv_pvbyten_force(SV* sv, STRLEN* lp) =for hackers Found in file sv.c -=item sv_pvn -X - -A private implementation of the C macro for compilers which can't -cope with complex macro expressions. Always use the macro instead. - - char* sv_pvn(SV *sv, STRLEN *len) - -=for hackers -Found in file sv.c - =item sv_pvn_force X @@ -5052,34 +5153,10 @@ C and C =for hackers Found in file sv.c -=item sv_pvutf8 -X - -Use the C macro instead - - char* sv_pvutf8(SV *sv) - -=for hackers -Found in file sv.c - -=item sv_pvutf8n -X - -A private implementation of the C macro for compilers -which can't cope with complex macro expressions. Always use the macro -instead. - - char* sv_pvutf8n(SV *sv, STRLEN *len) - -=for hackers -Found in file sv.c - =item sv_pvutf8n_force X -A private implementation of the C macro for compilers -which can't cope with complex macro expressions. Always use the macro -instead. +The backend for the C macro. Always use the macro instead. char* sv_pvutf8n_force(SV* sv, STRLEN* lp) @@ -5435,15 +5512,6 @@ Like C, but also handles 'set' magic. =for hackers Found in file sv.c -=item sv_taint -X - -Taint an SV. Use C instead. - void sv_taint(SV* sv) - -=for hackers -Found in file sv.c - =item sv_tainted X @@ -5475,19 +5543,6 @@ Removes all magic of type C from an SV. =for hackers Found in file sv.c -=item sv_unref -X - -Unsets the RV status of the SV, and decrements the reference count of -whatever was being referenced by the RV. This can almost be thought of -as a reversal of C. This is C with the C -being zero. See C. - - void sv_unref(SV* sv) - -=for hackers -Found in file sv.c - =item sv_unref_flags X @@ -5632,17 +5687,6 @@ use the Encode extension for that. =for hackers Found in file sv.c -=item sv_uv -X - -A private implementation of the C macro for compilers which can't -cope with complex macro expressions. Always use the macro instead. - - UV sv_uv(SV* sv) - -=for hackers -Found in file sv.c - =item sv_vcatpvf X @@ -5825,7 +5869,7 @@ Found in file utf8.c =item is_utf8_string_loc X -Like is_ut8_string() but stores the location of the failure (in the +Like is_utf8_string() but stores the location of the failure (in the case of "utf8ness failure") or the location s+len (in the case of "utf8ness success") in the C. @@ -5839,7 +5883,7 @@ Found in file utf8.c =item is_utf8_string_loclen X -Like is_ut8_string() but stores the location of the failure (in the +Like is_utf8_string() but stores the location of the failure (in the case of "utf8ness failure") or the location s+len (in the case of "utf8ness success") in the C, and the number of UTF-8 encoded characters in the C. @@ -6018,20 +6062,6 @@ The first character of the uppercased version is returned =for hackers Found in file utf8.c -=item utf8n_to_uvchr -X - -Returns the native character value of the first character in the string C -which is assumed to be in UTF-8 encoding; C will be set to the -length, in bytes, of that character. - -Allows length and flags to be passed to low level routine. - - UV utf8n_to_uvchr(const U8 *s, STRLEN curlen, STRLEN *retlen, U32 flags) - -=for hackers -Found in file utf8.c - =item utf8n_to_uvuni X @@ -6148,25 +6178,6 @@ returned and retlen is set, if possible, to -1. =for hackers Found in file utf8.c -=item uvchr_to_utf8 -X - -Adds the UTF-8 representation of the Native codepoint C to the end -of the string C; C should be have at least C free -bytes available. The return value is the pointer to the byte after the -end of the new character. In other words, - - d = uvchr_to_utf8(d, uv); - -is the recommended wide native character-aware way of saying - - *(d++) = uv; - - U8* uvchr_to_utf8(U8 *d, UV uv) - -=for hackers -Found in file utf8.c - =item uvuni_to_utf8_flags X