From: Pekka Riikonen Date: Fri, 28 Nov 2003 17:21:19 +0000 (+0000) Subject: No empty SILC_LOG_* macros if SILC_DEBUG is undefined. X-Git-Tag: silc.server.0.9.16~29 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=5fce9c4f2c62fbfb7be4064d5eac447d5691563f No empty SILC_LOG_* macros if SILC_DEBUG is undefined. --- diff --git a/lib/silcutil/silclog.h b/lib/silcutil/silclog.h index e42d2a0c..eae965e0 100644 --- a/lib/silcutil/silclog.h +++ b/lib/silcutil/silclog.h @@ -379,8 +379,8 @@ extern DLLAPI bool silc_debug_hexdump; #define SILC_NOT_IMPLEMENTED(string) \ SILC_LOG_INFO(("*********** %s: NOT IMPLEMENTED YET", string)); #else -#define SILC_LOG_DEBUG(fmt) -#define SILC_NOT_IMPLEMENTED(string) +#define SILC_LOG_DEBUG(fmt) do { } while(0) +#define SILC_NOT_IMPLEMENTED(string) do { } while(0) #endif /* SILC_DEBUG */ /***/ @@ -418,7 +418,7 @@ extern DLLAPI bool silc_debug_hexdump; (void *)(data), (len), \ silc_format fmt) #else -#define SILC_LOG_HEXDUMP(fmt, data, len) +#define SILC_LOG_HEXDUMP(fmt, data, len) do { } while(0) #endif /* SILC_DEBUG */ /***/ diff --git a/lib/silcutil/silcutil.h b/lib/silcutil/silcutil.h index 57c5b1db..5a0c9aec 100644 --- a/lib/silcutil/silcutil.h +++ b/lib/silcutil/silcutil.h @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2002 Pekka Riikonen + Copyright (C) 1997 - 2003 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -334,7 +334,8 @@ bool silc_hash_data_compare(void *key1, void *key2, void *user_context); * * SYNOPSIS * - * bool silc_hash_public_key_compare(void *key1, void *key2, void *user_context); + * bool silc_hash_public_key_compare(void *key1, void *key2, + * void *user_context); * * DESCRIPTION * @@ -482,7 +483,7 @@ int silc_gettimeofday(struct timeval *p); * * SYNOPSIS * - * bool silc_compare_timeval(struct timeval *smaller, + * bool silc_compare_timeval(struct timeval *smaller, * struct timeval *bigger) * * DESCRIPTION @@ -491,7 +492,7 @@ int silc_gettimeofday(struct timeval *p); * time value is smaller than the second time value. * ***/ -bool silc_compare_timeval(struct timeval *smaller, +bool silc_compare_timeval(struct timeval *smaller, struct timeval *bigger); /****f* silcutil/SilcUtilAPI/silc_string_regexify