mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-04-23 00:48:54 +02:00
perl: more inline
This commit is contained in:
parent
b79c1345b9
commit
ef0a86e7cc
@ -131,7 +131,7 @@ STATIC_INLINE int template_callback_raw(unpack_user* u, const char* b, const cha
|
|||||||
|
|
||||||
#include "msgpack/unpack_template.h"
|
#include "msgpack/unpack_template.h"
|
||||||
|
|
||||||
SV* _msgpack_unpack(SV* data, int limit) {
|
STATIC_INLINE SV* _msgpack_unpack(SV* data, int limit) {
|
||||||
msgpack_unpack_t mp;
|
msgpack_unpack_t mp;
|
||||||
unpack_user u = {0, &PL_sv_undef};
|
unpack_user u = {0, &PL_sv_undef};
|
||||||
int ret;
|
int ret;
|
||||||
@ -194,7 +194,7 @@ XS(xs_unpack) {
|
|||||||
/* ------------------------------ stream -- */
|
/* ------------------------------ stream -- */
|
||||||
/* http://twitter.com/frsyuki/status/13249304748 */
|
/* http://twitter.com/frsyuki/status/13249304748 */
|
||||||
|
|
||||||
static void _reset(SV* self) {
|
STATIC_INLINE void _reset(SV* self) {
|
||||||
unpack_user u = {0, &PL_sv_undef, 0};
|
unpack_user u = {0, &PL_sv_undef, 0};
|
||||||
|
|
||||||
UNPACKER(self, mp);
|
UNPACKER(self, mp);
|
||||||
@ -220,7 +220,7 @@ XS(xs_unpacker_new) {
|
|||||||
XSRETURN(1);
|
XSRETURN(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static SV* _execute_impl(SV* self, SV* data, UV off, I32 limit) {
|
STATIC_INLINE SV* _execute_impl(SV* self, SV* data, UV off, I32 limit) {
|
||||||
UNPACKER(self, mp);
|
UNPACKER(self, mp);
|
||||||
|
|
||||||
size_t from = off;
|
size_t from = off;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user