Lines Matching refs:obj
24 int DynDelete(obj, idx) in DynDelete() argument
25 DynObjectP obj; in DynDelete()
29 if (obj->debug)
34 if (idx >= obj->num_el) {
35 if (obj->debug)
37 obj->num_el);
41 if (idx == obj->num_el-1) {
42 if (obj->paranoid) {
43 if (obj->debug)
45 memset(obj->array + idx*obj->el_size, 0, obj->el_size);
48 if (obj->debug)
53 if (obj->debug)
56 obj->el_size*(obj->num_el - idx), obj->array,
57 (idx+1)*obj->el_size, idx*obj->el_size);
60 memmove(obj->array + idx*obj->el_size,
61 obj->array + (idx+1)*obj->el_size,
62 obj->el_size*(obj->num_el - idx));
64 bcopy(obj->array + (idx+1)*obj->el_size,
65 obj->array + idx*obj->el_size,
66 obj->el_size*(obj->num_el - idx));
68 if (obj->paranoid) {
69 if (obj->debug)
72 obj->el_size, obj->array,
73 obj->el_size*(obj->num_el - 1));
74 memset(obj->array + obj->el_size*(obj->num_el - 1), 0,
75 obj->el_size);
79 --obj->num_el;
81 if (obj->debug)