Differences From Artifact [3d2cb3ed1b]:
- File src/object.c — part of check-in [8ec09e82ac] at 2012-04-22 13:09:52 on branch trunk — Add refpool. (user: js, size: 3125) [annotate] [blame] [check-ins using]
To Artifact [55e68373f9]:
- File src/object.c — part of check-in [ffa5357d1b] at 2012-04-22 14:03:42 on branch trunk — Add cfw_is. (user: js, size: 3219) [annotate] [blame] [check-ins using]
︙ | |||
114 115 116 117 118 119 120 121 122 123 124 125 126 127 | 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | + + + + + + + + | CFWObject *obj = ptr; if (obj->cls->dtor != NULL) obj->cls->dtor(obj); free(obj); } bool cfw_is(void *ptr, CFWClass *cls) { CFWObject *obj = ptr; return (obj->cls == cls); } bool cfw_equal(void *ptr1, void *ptr2) { CFWObject *obj1 = ptr1, *obj2 = ptr2; if (obj1->cls->equal != NULL) { |
︙ |