This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add sv_reftype_len() and make sv_reftype() be a wrapper for it
authorYves Orton <demerphq@gmail.com>
Sun, 29 Aug 2010 18:47:16 +0000 (20:47 +0200)
committerYves Orton <demerphq@gmail.com>
Sun, 29 Aug 2010 22:42:05 +0000 (00:42 +0200)
commit05c0d6bbe3ec5cc9af99d105b8648ad02ed7cc95
treeb9515e9cdc9550668ed574dc10948665a2e22c2f
parentdcab73c98b3631cbd98acc628309c400cf7b5ad2
add sv_reftype_len() and make sv_reftype() be a wrapper for it

sv_reftype() mostly returns strings whose length is known at compile
time, so we can avoid a strlen() call if we return the length.

Additionally, the non-length interface is potentially buggy in the
face of class names which contain "\0", therefore providing a way
to obtain the true length allows us to avoid any trickyness.
embed.fnc
embed.h
global.sym
proto.h
sv.c