}
/*
-=for apidoc_section Errno
+=for apidoc_section $errno
=for apidoc sv_string_from_errnum
Generates the message string describing an OS error and returns it as
}
/*
-=for apidoc_section Magic
+=for apidoc_section $magic
=for apidoc magic_methcall
Invoke a magic method (like FETCH).
/* Collate magic uses mg_len as a string length rather than a buffer
* length, so we need to free even with mg_len == 0: hence we can't
* rely on standard magic free handling */
- assert(mg->mg_type == PERL_MAGIC_collxfrm && mg->mg_len >= 0);
- Safefree(mg->mg_ptr);
- mg->mg_ptr = NULL;
+ if (mg->mg_len >= 0) {
+ assert(mg->mg_type == PERL_MAGIC_collxfrm);
+ Safefree(mg->mg_ptr);
+ mg->mg_ptr = NULL;
+ }
+
return 0;
}
#endif /* USE_LOCALE_COLLATE */
}
/*
-=for apidoc_section Signals
+=for apidoc_section $signals
=for apidoc whichsig
=for apidoc_item whichsig_pv
=for apidoc_item whichsig_pvn
}
/*
-=for apidoc_section Magic
+=for apidoc_section $magic
=for apidoc magic_sethint
Triggered by a store to C<%^H>, records the key/value pair to