Cleanup logging macros and get rid of p_ignore.

This commit is contained in:
ehouse 2006-10-15 14:33:55 +00:00
parent 27d01c55b4
commit be5e857600
2 changed files with 6 additions and 11 deletions

View file

@ -715,9 +715,6 @@ palm_debugf( char* format, ...)
logToFile( buf );
} /* debugf */
/* if -0 isn't passed to compiler it wants to find this!!! */
void p_ignore(char* s, ...) {}
void
palm_logf( char* format, ... )
{

View file

@ -43,7 +43,6 @@ typedef Boolean XP_Bool;
typedef XP_U32 XP_Time;
void palm_debugf(char*, ...);
void p_ignore(char*, ...);
void palm_assert(Boolean b, int line, const char* func, const char* file );
void palm_warnf( char* format, ... );
void palm_logf( char* format, ... );
@ -89,20 +88,19 @@ XP_U8* palm_realloc(XP_U8* in, XP_U16 size);
#endif
#ifdef DEBUG
# define XP_DEBUGF palm_debugf
# define XP_DEBUGF(...) palm_debugf(__VA_ARGS__)
#else
# define XP_DEBUGF if(0)p_ignore
# define XP_DEBUGF(...)
#endif
//#define XP_STATUSF if(0)p_ignore
#define XP_STATUSF XP_LOGF /* for now */
#ifdef DEBUG
#define XP_LOGF palm_logf
#define XP_WARNF palm_warnf
#define XP_LOGF(...) palm_logf(__VA_ARGS__)
#define XP_WARNF(...) palm_warnf(__VA_ARGS__)
#else
#define XP_WARNF if(0)p_ignore
#define XP_LOGF if(0)p_ignore
#define XP_WARNF(...)
#define XP_LOGF(...)
#endif
/* Assumes big-endian, of course */