From 19cad8b12fa34e05f903c1d55c77453be1bab431 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 29 Jan 2008 10:23:10 +0000 Subject: implemented naming for all objects (mostly as a debug aid, but you never know what else it will be good for) --- debug.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'debug.h') diff --git a/debug.h b/debug.h index 9c28eca1..df8c3138 100644 --- a/debug.h +++ b/debug.h @@ -26,6 +26,7 @@ #define DEBUG_H_INCLUDED #include +#include "obj-types.h" /* external static data elements (some time to be replaced) */ extern int Debug; /* debug flag - read-only after startup */ @@ -84,7 +85,8 @@ typedef struct dbgCallStack_s { rsRetVal dbgClassInit(void); rsRetVal dbgClassExit(void); void sigsegvHdlr(int signum); -void dbgprintf(char *fmt, ...) __attribute__((format(printf,1, 2))); +void dbgoprint(obj_t *pObj, char *fmt, ...) __attribute__((format(printf, 2, 3))); +void dbgprintf(char *fmt, ...) __attribute__((format(printf, 1, 2))); int dbgMutexLock(pthread_mutex_t *pmut, dbgFuncDB_t *pFuncD, int ln, int iStackPtr); int dbgMutexUnlock(pthread_mutex_t *pmut, dbgFuncDB_t *pFuncD, int ln, int iStackPtr); int dbgCondWait(pthread_cond_t *cond, pthread_mutex_t *pmut, dbgFuncDB_t *pFuncD, int ln, int iStackPtr); -- cgit v1.2.3