Lines Matching refs:obj
23 int _DynResize(obj, req) in _DynResize() argument
24 DynObjectP obj; in _DynResize()
29 if (obj->size > req)
31 else if (obj->inc > 0)
32 return _DynRealloc(obj, (req - obj->size) / obj->inc + 1);
34 if (obj->size == 0)
35 size = -obj->inc;
37 size = obj->size;
42 return _DynRealloc(obj, size);
54 int _DynRealloc(obj, num_incs) in _DynRealloc() argument
55 DynObjectP obj; in _DynRealloc()
61 if (obj->inc > 0)
62 new_size_in_bytes = obj->el_size*(obj->size + obj->inc*num_incs);
64 new_size_in_bytes = obj->el_size*num_incs;
66 if (obj->debug)
69 new_size_in_bytes - obj->el_size*obj->size,
72 temp = (DynPtr) realloc(obj->array, new_size_in_bytes);
74 if (obj->debug)
79 obj->array = temp;
80 if (obj->inc > 0)
81 obj->size += obj->inc*num_incs;
83 obj->size = num_incs;
86 if (obj->debug)