Lines Matching refs:obj
23 int _DynResize(obj, req)
24 DynObjectP obj;
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);
47 * Resize the array by num_incs units. If obj->inc is positive, this
48 * means make it obj->inc*num_incs elements larger. If obj->inc is
54 int _DynRealloc(obj, num_incs)
55 DynObjectP obj;
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)