ext/iodine/redis_engine.c
/** a local helper to add parsed objects to the data store. */
a local helper to add parsed objects to the data store.
a local helper to add parsed objects to the data store .
static inline void resp_add_obj(struct redis_engine_internal_s *dest, FIOBJ o) {
  if (dest->ary) {
    fiobj_ary_push(dest->ary, o);
    --dest->ary_count;
    if (!dest->ary_count && dest->nesting) {
      FIOBJ tmp = fiobj_ary_shift(dest->ary);
      dest->ary_count = fiobj_obj2num(tmp);
      fiobj_free(tmp);
      dest->ary = fiobj_ary_shift(dest->ary);
      --dest->nesting;
    }
  }
  dest->str = o;
}
static inline void resp_add_obj ( struct redis_engine_internal_s * dest , FIOBJ o ) { if ( dest -> ary ) { fiobj_ary_push ( dest -> ary , o ) ; -- dest -> ary_count ; if ( ! dest -> ary_count && dest -> nesting ) { FIOBJ tmp = fiobj_ary_shift ( dest -> ary ) ; dest -> ary_count = fiobj_obj2num ( tmp ) ; fiobj_free ( tmp ) ; dest -> ary = fiobj_ary_shift ( dest -> ary ) ; -- dest -> nesting ; } } dest -> str = o ; }
a local helper to add parsed objects to the data store.
a local helper to add parsed objects to the data store .