Lines Matching refs:obj
17 int DynInsert(obj, idx, els_in, num) in DynInsert() argument
18 DynObjectP obj; in DynInsert()
25 if (idx < 0 || idx > obj->num_el) {
26 if (obj->debug)
28 idx, obj->num_el);
33 if (obj->debug)
39 if (obj->debug)
41 (obj->num_el-idx)*obj->el_size, obj->array,
42 obj->el_size*idx, obj->el_size*(idx+num));
44 if ((ret = _DynResize(obj, obj->num_el + num)) != DYN_OK)
47 memmove(obj->array + obj->el_size*(idx + num),
48 obj->array + obj->el_size*idx,
49 (obj->num_el-idx)*obj->el_size);
51 bcopy(obj->array + obj->el_size*idx,
52 obj->array + obj->el_size*(idx + num),
53 (obj->num_el-idx)*obj->el_size);
56 if (obj->debug)
58 obj->el_size*num, els, obj->array, obj->el_size*idx);
61 memmove(obj->array + obj->el_size*idx, els, obj->el_size*num);
63 bcopy(els, obj->array + obj->el_size*idx, obj->el_size*num);
65 obj->num_el += num;
67 if (obj->debug)