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