diff options
Diffstat (limited to 'src/H5UCprivate.h')
-rw-r--r-- | src/H5UCprivate.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/H5UCprivate.h b/src/H5UCprivate.h index e4916df..2d6f40f 100644 --- a/src/H5UCprivate.h +++ b/src/H5UCprivate.h @@ -41,24 +41,22 @@ typedef herr_t (*H5UC_free_func_t)(void *o); /* Typedef for reference counted objects */ typedef struct H5UC_t { - void *o; /* Object to be reference counted */ - size_t n; /* Reference count of number of pointers sharing object */ + void * o; /* Object to be reference counted */ + size_t n; /* Reference count of number of pointers sharing object */ H5UC_free_func_t free_func; /* Function to free object */ } H5UC_t; /**********/ /* Macros */ /**********/ -#define H5UC_INC(rc) ((rc)->n++) -#define H5UC_DEC(rc) (H5UC_decr(rc)) -#define H5UC_GET_OBJ(rc) ((rc)->o) +#define H5UC_INC(rc) ((rc)->n++) +#define H5UC_DEC(rc) (H5UC_decr(rc)) +#define H5UC_GET_OBJ(rc) ((rc)->o) /********************/ /* Private routines */ /********************/ H5_DLL H5UC_t *H5UC_create(void *s, H5UC_free_func_t free_func); -H5_DLL herr_t H5UC_decr(H5UC_t *rc); +H5_DLL herr_t H5UC_decr(H5UC_t *rc); #endif /* _H5RSprivate_H */ - - |