예제 #1
0
void		*get_new_obj_set(int size, int id)
{
  void		*obj;
  int		i;

  obj = get_new_obj(size, id);
  i = -1;
  while (++i < size)
    ((char *)(obj))[i] = 0;  
  return (obj);
}
예제 #2
0
파일: lua_obj.c 프로젝트: axbannaz/jsoncc
static int l_obj_children(lua_State* L)
{
    struct obj* self = get_self(L);
    struct obj* children = self->children;
    return children ? get_new_obj(L, children) : 0;
}
예제 #3
0
파일: lua_obj.c 프로젝트: axbannaz/jsoncc
static int l_obj_next(lua_State* L)
{
    struct obj* self = get_self(L);
    struct obj* next = self->next;
    return next ? get_new_obj(L, next) : 0;
}