summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-10-07 16:30:32 +0100
committerNicholas Clark <nick@ccl4.org>2010-10-07 16:30:32 +0100
commite9b067d91703bf151aa6769b5c49fb95a91f6fa5 (patch)
treeaf044dc7ae0745b91d42609bb05337360bc0f757 /embed.fnc
parent7b20c7cd49d506897c54f5ed022a5e5b5f8c594a (diff)
downloadperl-e9b067d91703bf151aa6769b5c49fb95a91f6fa5.tar.gz
Convert the implementation of XS_VERSION_BOOTCHECK to a function from a macro.
The macro expansion generates over 1K of object code. This is in every shared object, and is only called once. Hence this change increases the perl binary by about 1K (once), to save 1K for every XS module loaded.
Diffstat (limited to 'embed.fnc')
-rw-r--r--embed.fnc3
1 files changed, 3 insertions, 0 deletions
diff --git a/embed.fnc b/embed.fnc
index c0c5a3f1e3..704a5ddf32 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -2255,6 +2255,9 @@ Apo |void* |my_cxt_init |NN int *index|size_t size
#endif
#endif
+Apo |void |xs_version_bootcheck|U32 items|U32 ax|NN const char *xs_p \
+ |STRLEN xs_len
+
#ifndef HAS_STRLCAT
Apno |Size_t |my_strlcat |NULLOK char *dst|NULLOK const char *src|Size_t size
#endif