435 extern jfieldID mech_pParameterID; 436 437 extern jclass jByteArrayClass; 438 extern jclass jLongClass; 439 440 #ifndef NO_CALLBACKS 441 extern NotifyListNode *notifyListHead; 442 extern jobject notifyListLock; 443 444 extern jobject jInitArgsObject; 445 extern CK_C_INITIALIZE_ARGS_PTR ckpGlobalInitArgs; 446 #endif /* NO_CALLBACKS */ 447 448 #ifdef P11_MEMORYDEBUG 449 #include <stdlib.h> 450 451 /* Simple malloc/free dumper */ 452 void *p11malloc(size_t c, char *file, int line); 453 void p11free(void *p, char *file, int line); 454 455 #define malloc(c) (p11malloc((c), __FILE__, __LINE__)) 456 #define free(c) (p11free((c), __FILE__, __LINE__)) 457 458 #endif | 435 extern jfieldID mech_pParameterID; 436 437 extern jclass jByteArrayClass; 438 extern jclass jLongClass; 439 440 #ifndef NO_CALLBACKS 441 extern NotifyListNode *notifyListHead; 442 extern jobject notifyListLock; 443 444 extern jobject jInitArgsObject; 445 extern CK_C_INITIALIZE_ARGS_PTR ckpGlobalInitArgs; 446 #endif /* NO_CALLBACKS */ 447 448 #ifdef P11_MEMORYDEBUG 449 #include <stdlib.h> 450 451 /* Simple malloc/free dumper */ 452 void *p11malloc(size_t c, char *file, int line); 453 void p11free(void *p, char *file, int line); 454 455 /* Use THIS_FILE when it is available. */ 456 #ifndef THIS_FILE 457 #define THIS_FILE __FILE__ 458 #endif 459 460 #define malloc(c) (p11malloc((c), THIS_FILE, __LINE__)) 461 #define free(c) (p11free((c), THIS_FILE, __LINE__)) 462 463 #endif |