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
71 * Interpose the indirection. Result will hold the indirection and object is the
74 #define ADD_RC_CHK(result, object) \ argument
76 object ? (result = malloc(sizeof(*result)), \
77 result ? (result->orig = object, result) \
83 #define RC_CHK_ACCESS(object) object->orig argument
85 /* Frees the object and the indirection layer. */
86 #define RC_CHK_FREE(object) \ argument
88 zfree(&object->orig); \
89 free(object); \
93 #define RC_CHK_GET(result, object) ADD_RC_CHK(result, (object ? object->orig : NULL)) argument
96 #define RC_CHK_PUT(object) \ argument
98 if (object) { \
99 object->orig = NULL; \
100 free(object); \