mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-17 19:25:54 +02:00
ruby: version 0.4.0
This commit is contained in:
@@ -130,8 +130,6 @@ static inline int template_callback_map_item(unpack_user* u, VALUE* c, VALUE k,
|
||||
#endif
|
||||
|
||||
static inline int template_callback_raw(unpack_user* u, const char* b, const char* p, unsigned int l, VALUE* o)
|
||||
//{ *o = (l <= COW_MIN_SIZE) ? rb_str_new(p, l) : rb_str_substr(u->source, p - b, l); return 0; }
|
||||
//{ *o = rb_str_new(p, l); return 0; }
|
||||
{
|
||||
if(u->source == Qnil || l <= COW_MIN_SIZE) {
|
||||
*o = rb_str_new(p, l);
|
||||
|
Reference in New Issue
Block a user