Lines Matching refs:object
40 * Interpose the indirection. Result will hold the indirection and object is the
43 #define ADD_RC_CHK(result, object) (result = object, object)
46 #define RC_CHK_ACCESS(object) object
48 /* Frees the object and the indirection layer. */
49 #define RC_CHK_FREE(object) free(object)
52 #define RC_CHK_GET(result, object) ADD_RC_CHK(result, object)
55 #define RC_CHK_PUT(object) {}
74 * Interpose the indirection. Result will hold the indirection and object is the
77 #define ADD_RC_CHK(result, object) \
79 object ? (result = malloc(sizeof(*result)), \
80 result ? (result->orig = object, result) \
86 #define RC_CHK_ACCESS(object) object->orig
88 /* Frees the object and the indirection layer. */
89 #define RC_CHK_FREE(object) \
91 zfree(&object->orig); \
92 free(object); \
96 #define RC_CHK_GET(result, object) ADD_RC_CHK(result, (object ? object->orig : NULL))
99 #define RC_CHK_PUT(object) \
101 if (object) { \
102 object->orig = NULL; \
103 free(object); \