Lines Matching refs:obj
19 int DynInsert(obj, idx, els_in, num) in DynInsert() argument
20 DynObjectP obj; in DynInsert()
27 if (idx < 0 || idx > obj->num_el) {
28 if (obj->debug)
30 idx, obj->num_el);
35 if (obj->debug)
41 if (obj->debug)
43 (obj->num_el-idx)*obj->el_size, obj->array,
44 obj->el_size*idx, obj->el_size*(idx+num));
46 if ((ret = _DynResize(obj, obj->num_el + num)) != DYN_OK)
49 memmove(obj->array + obj->el_size*(idx + num),
50 obj->array + obj->el_size*idx,
51 (obj->num_el-idx)*obj->el_size);
53 bcopy(obj->array + obj->el_size*idx,
54 obj->array + obj->el_size*(idx + num),
55 (obj->num_el-idx)*obj->el_size);
58 if (obj->debug)
60 obj->el_size*num, els, obj->array, obj->el_size*idx);
63 memmove(obj->array + obj->el_size*idx, els, obj->el_size*num);
65 bcopy(els, obj->array + obj->el_size*idx, obj->el_size*num);
67 obj->num_el += num;
69 if (obj->debug)