X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlguts.pod;h=7d1392a479e09f94a673f239ebc6b5b1185917b3;hb=bc82975d259d743626ad1b4a960b4b1f13c7a816;hp=d37a381c9d343dc1cb9745f1659f72dd2576f252;hpb=301cb7e88d962bd78c8bd82e4f0df528d67f2ba8;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlguts.pod b/pod/perlguts.pod index d37a381..7d1392a 100644 --- a/pod/perlguts.pod +++ b/pod/perlguts.pod @@ -126,11 +126,11 @@ Also remember that C doesn't allow you to safely say C. It might work with your compiler, but it won't work for everyone. Break this sort of statement up into separate assignments: - SV *s; - STRLEN len; - char * ptr; - ptr = SvPV(s, len); - foo(ptr, len); + SV *s; + STRLEN len; + char * ptr; + ptr = SvPV(s, len); + foo(ptr, len); If you want to know if the scalar value is TRUE, you can use: @@ -2184,16 +2184,18 @@ after that are the arguments. The first column is a set of flags: =item A -This function is a part of the public API. +This function is a part of the public API. All such functions should also +have 'd', very few do not. =item p -This function has a C prefix; i.e. it is defined as C +This function has a C prefix; i.e. it is defined as +C. =item d This function has documentation using the C feature which we'll -look at in a second. +look at in a second. Some functions have 'd' but not 'A'; docs are good. =back @@ -2203,12 +2205,13 @@ Other available flags are: =item s -This is a static function and is defined as C, and usually -called within the sources as C. +This is a static function and is defined as C, and +usually called within the sources as C. =item n -This does not use C and C to pass interpreter context. (See +This does not need a interpreter context, so the definition has no +C, and it follows that callers don't use C. (See L.) =item r @@ -2253,6 +2256,10 @@ This function is visible to extensions included in the Perl core. Binary backward compatibility; this function is a macro but also has a C implementation (which is exported). +=item others + +See the comments at the top of C for others. + =back If you edit F or F, you will need to run @@ -2596,7 +2603,7 @@ define your own ops. This is primarily to allow the building of interpreters for other languages in the Perl core, but it also allows optimizations through the creation of "macro-ops" (ops which perform the functions of multiple ops which are usually executed together, such as -C.) +C.) This feature is implemented as a new op type, C. The Perl core does not "know" anything special about this op type, and so it will