Lines Matching refs:obj
20 DynPtr DynArray(obj)
21 DynObjectP obj;
23 if (obj->debug)
25 obj->array);
27 return obj->array;
30 DynPtr DynGet(obj, num)
31 DynObjectP obj;
35 if (obj->debug)
40 if (num >= obj->num_el) {
41 if (obj->debug)
43 obj->num_el);
47 if (obj->debug)
49 obj->array, obj->el_size*num);
51 return (DynPtr) obj->array + obj->el_size*num;
54 int DynAdd(obj, el)
55 DynObjectP obj;
60 ret = DynPut(obj, el, obj->num_el);
64 ++obj->num_el;
73 * obj->num_el) will not be updated properly and many other functions
76 int DynPut(obj, el_in, idx)
77 DynObjectP obj;
84 if (obj->debug)
86 obj->el_size, el, obj->array, idx*obj->el_size);
88 if ((ret = _DynResize(obj, idx)) != DYN_OK)
92 memmove(obj->array + idx*obj->el_size, el, obj->el_size);
94 bcopy(el, obj->array + idx*obj->el_size, obj->el_size);
97 if (obj->debug)