< prev index next >
src/jdk.crypto.cryptoki/share/native/libj2pkcs11/pkcs11wrapper.h
Print this page
rev 52923 : 8226346: Build better binary builders
Reviewed-by: andrew
*** 475,491 ****
/* Simple malloc/calloc/free dumper */
void *p11malloc(size_t c, char *file, int line);
void *p11calloc(size_t c, size_t s, char *file, int line);
void p11free(void *p, char *file, int line);
! /* Use THIS_FILE when it is available. */
! #ifndef THIS_FILE
! #define THIS_FILE __FILE__
! #endif
!
! #define malloc(c) (p11malloc((c), THIS_FILE, __LINE__))
! #define calloc(c, s) (p11calloc((c), (s), THIS_FILE, __LINE__))
! #define free(c) (p11free((c), THIS_FILE, __LINE__))
#endif
#endif /* _PKCS11WRAPPER_H */
--- 475,486 ----
/* Simple malloc/calloc/free dumper */
void *p11malloc(size_t c, char *file, int line);
void *p11calloc(size_t c, size_t s, char *file, int line);
void p11free(void *p, char *file, int line);
! #define malloc(c) (p11malloc((c), __FILE__, __LINE__))
! #define calloc(c, s) (p11calloc((c), (s), __FILE__, __LINE__))
! #define free(c) (p11free((c), __FILE__, __LINE__))
#endif
#endif /* _PKCS11WRAPPER_H */
< prev index next >