Lines Matching refs:obj
31 DynObjectP obj; local
33 obj = (DynObjectP) malloc(sizeof(DynObjectRecP));
34 if (obj == NULL)
38 obj->array = (DynPtr) malloc(1);
40 obj->array = (DynPtr) malloc(0);
42 obj->el_size = el_size;
43 obj->num_el = obj->size = 0;
44 obj->debug = obj->paranoid = 0;
45 obj->inc = (!! inc) ? inc : default_increment;
47 return obj;
50 DynObjectP DynCopy(obj) in DynCopy() argument
51 DynObjectP obj; in DynCopy()
59 obj1->el_size = obj->el_size;
60 obj1->num_el = obj->num_el;
61 obj1->size = obj->size;
62 obj1->inc = obj->inc;
63 obj1->debug = obj->debug;
64 obj1->paranoid = obj->paranoid;
65 obj1->initzero = obj->initzero;
71 memcpy(obj->array, obj1->array,
77 int DynDestroy(obj) in DynDestroy() argument
78 DynObjectP obj; in DynDestroy()
80 if (obj->paranoid) {
81 if (obj->debug)
83 obj->el_size * obj->size, obj->array);
84 memset(obj->array, 0, obj->el_size * obj->size);
86 free(obj->array);
87 free(obj);
91 int DynRelease(obj) in DynRelease() argument
92 DynObjectP obj; in DynRelease()
94 if (obj->debug)
96 free(obj);