Lines Matching refs:obj
25 int DynDelete(obj, idx) in DynDelete() argument
26 DynObjectP obj; in DynDelete()
30 if (obj->debug)
35 if (idx >= obj->num_el) {
36 if (obj->debug)
38 obj->num_el);
42 if (idx == obj->num_el-1) {
43 if (obj->paranoid) {
44 if (obj->debug)
46 memset(obj->array + idx*obj->el_size, 0, obj->el_size);
49 if (obj->debug)
54 if (obj->debug)
57 obj->el_size*(obj->num_el - idx), obj->array,
58 (idx+1)*obj->el_size, idx*obj->el_size);
61 memmove(obj->array + idx*obj->el_size,
62 obj->array + (idx+1)*obj->el_size,
63 obj->el_size*(obj->num_el - idx));
65 bcopy(obj->array + (idx+1)*obj->el_size,
66 obj->array + idx*obj->el_size,
67 obj->el_size*(obj->num_el - idx));
69 if (obj->paranoid) {
70 if (obj->debug)
73 obj->el_size, obj->array,
74 obj->el_size*(obj->num_el - 1));
75 memset(obj->array + obj->el_size*(obj->num_el - 1), 0,
76 obj->el_size);
80 --obj->num_el;
82 if (obj->debug)