Lines Matching refs:obj
21 int _DynResize(obj, req) in _DynResize() argument
22 DynObjectP obj; in _DynResize()
27 if (obj->size > req)
29 else if (obj->inc > 0)
30 return _DynRealloc(obj, (req - obj->size) / obj->inc + 1);
32 if (obj->size == 0)
33 size = -obj->inc;
35 size = obj->size;
40 return _DynRealloc(obj, size);
52 int _DynRealloc(obj, num_incs) in _DynRealloc() argument
53 DynObjectP obj; in _DynRealloc()
59 if (obj->inc > 0)
60 new_size_in_bytes = obj->el_size*(obj->size + obj->inc*num_incs);
62 new_size_in_bytes = obj->el_size*num_incs;
64 if (obj->debug)
67 new_size_in_bytes - obj->el_size*obj->size,
70 temp = (DynPtr) realloc(obj->array, new_size_in_bytes);
72 if (obj->debug)
77 obj->array = temp;
78 if (obj->inc > 0)
79 obj->size += obj->inc*num_incs;
81 obj->size = num_incs;
84 if (obj->debug)