summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2010-08-29 20:47:16 +0200
committerYves Orton <demerphq@gmail.com>2010-08-30 00:42:05 +0200
commit05c0d6bbe3ec5cc9af99d105b8648ad02ed7cc95 (patch)
treeb9515e9cdc9550668ed574dc10948665a2e22c2f /embed.fnc
parentdcab73c98b3631cbd98acc628309c400cf7b5ad2 (diff)
downloadperl-05c0d6bbe3ec5cc9af99d105b8648ad02ed7cc95.tar.gz
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.
Diffstat (limited to 'embed.fnc')
-rw-r--r--embed.fnc1
1 files changed, 1 insertions, 0 deletions
diff --git a/embed.fnc b/embed.fnc
index 47ca611a49..a443e9ae6c 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -1199,6 +1199,7 @@ Apd |char* |sv_pvbyten_force|NN SV *const sv|NULLOK STRLEN *const lp
Apd |char* |sv_recode_to_utf8 |NN SV* sv|NN SV *encoding
Apd |bool |sv_cat_decode |NN SV* dsv|NN SV *encoding|NN SV *ssv|NN int *offset \
|NN char* tstr|int tlen
+ApdR |const char* |sv_reftype_len |NN const SV *const sv|const int ob|NN STRLEN *const ret_len
ApdR |const char* |sv_reftype |NN const SV *const sv|const int ob
Apd |void |sv_replace |NN SV *const sv|NN SV *const nsv
Apd |void |sv_report_used