void silc_buffer_free(SilcBuffer sb)
{
if (sb) {
-#ifdef SILC_DEBUG
+#if defined(SILC_DEBUG)
memset(sb->head, 'F', sb->truelen);
#endif
silc_free(sb->head);
{
unsigned char *old_data = sb->data;
-#ifdef SILC_DEBUG
+#if defined(SILC_DEBUG)
assert(len <= (SilcUInt32)(sb->tail - sb->data));
#endif
{
unsigned char *old_data = sb->data;
-#ifdef SILC_DEBUG
+#if defined(SILC_DEBUG)
assert((sb->data - len) >= sb->head);
#endif
{
unsigned char *old_tail = sb->tail;
-#ifdef SILC_DEBUG
+#if defined(SILC_DEBUG)
assert((SilcUInt32)(sb->end - sb->tail) >= len);
#endif
{
unsigned char *old_tail = sb->tail;
-#ifdef SILC_DEBUG
+#if defined(SILC_DEBUG)
assert((sb->tail - len) >= sb->data);
#endif
const unsigned char *data,
SilcUInt32 len)
{
-#ifdef SILC_DEBUG
+#if defined(SILC_DEBUG)
assert((SilcUInt32)(sb->data - sb->head) >= len);
#endif
return (unsigned char *)memcpy(sb->head, data, len);
const unsigned char *data,
SilcUInt32 len)
{
-#ifdef SILC_DEBUG
+#if defined(SILC_DEBUG)
assert((SilcUInt32)(sb->tail - sb->data) >= len);
#endif
return (unsigned char *)memcpy(sb->data, data, len);
const unsigned char *data,
SilcUInt32 len)
{
-#ifdef SILC_DEBUG
+#if defined(SILC_DEBUG)
assert((SilcUInt32)(sb->end - sb->tail) >= len);
#endif
return (unsigned char *)memcpy(sb->tail, data, len);
while ((e = (SilcDListEntry)silc_list_get(list->list)) != SILC_LIST_END) {
if (e->context == context) {
silc_list_del(list->list, e);
-#ifdef SILC_DEBUG
+#if defined(SILC_DEBUG)
memset(e, 'F', sizeof(*e));
#endif
silc_free(e);
/* Macros */
-#ifdef SILC_WIN32
+#if defined(SILC_WIN32)
#ifndef __FUNCTION__
#define __FUNCTION__ ""
#endif
*
* SOURCE
*/
-#ifdef SILC_DEBUG
+#if defined(SILC_DEBUG)
#define SILC_LOG_DEBUG(fmt) silc_log_output_debug(__FILE__, \
__FUNCTION__, \
__LINE__, \
*
* SOURCE
*/
-#ifdef SILC_DEBUG
+#if defined(SILC_DEBUG)
#define SILC_LOG_HEXDUMP(fmt, data, len) silc_log_output_hexdump(__FILE__, \
__FUNCTION__, \
__LINE__, \