Diff for /libelwix/inc/elwix.h between versions 1.20 and 1.25.12.1

version 1.20, 2022/01/06 15:13:01 version 1.25.12.1, 2025/04/02 07:42:55
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004 - 2022Copyright 2004 - 2025
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 47  SUCH DAMAGE. Line 47  SUCH DAMAGE.
 #define __ELWIX_H  #define __ELWIX_H
   
   
   #include <stdio.h>
 #include <assert.h>  #include <assert.h>
 #include <syslog.h>  #include <syslog.h>
 #include <stdarg.h>  #include <stdarg.h>
Line 250  extern void (*e_free)(void*); Line 251  extern void (*e_free)(void*);
   
 /* Verbose macros */  /* Verbose macros */
 extern int elwix_Verbose;  extern int elwix_Verbose;
   #define e_Verbose               elwix_Verbose
 #define e_initVerbose(x)        (elwix_Verbose = (x))  #define e_initVerbose(x)        (elwix_Verbose = (x))
 #define e_incVerbose            (elwix_Verbose++)  #define e_incVerbose            (elwix_Verbose++)
 #define e_decVerbose            (elwix_Verbose--)  #define e_decVerbose            (elwix_Verbose--)
Line 279  extern int elwix_Debug; Line 281  extern int elwix_Debug;
 #define ELWIX_DEBUG_OFF         0x0  #define ELWIX_DEBUG_OFF         0x0
 #define ELWIX_DEBUG_TRACE       0x1  #define ELWIX_DEBUG_TRACE       0x1
 #define ELWIX_DEBUG_LOG         0x2  #define ELWIX_DEBUG_LOG         0x2
   #define ELWIX_DEBUG_MEM         0x4
   #define ELWIX_DEBUG_MEMORY      ELWIX_DEBUG_MEM
   #define ELWIX_DEBUG_IO          0x8
   #define ELWIX_DEBUG_IPC         0x10
   #define ELWIX_DEBUG_LOCK        0x20
   #define ELWIX_DEBUG_SYS         0x40
   #define ELWIX_DEBUG_NET         0x80
 #define ELWIX_DEBUG_ANY         0xFFFFFFFF  #define ELWIX_DEBUG_ANY         0xFFFFFFFF
   
   #define EDBG(x)                 (elwix_Debug & (x))
   #define EDBGS(x)                if (EDBG(x))
 #define ETRACE()                if (elwix_Debug & ELWIX_DEBUG_TRACE) \  #define ETRACE()                if (elwix_Debug & ELWIX_DEBUG_TRACE) \
                                            syslog(LOG_DEBUG, "I'm in %s(%d)\n", __func__, __LINE__)                                             syslog(LOG_DEBUG, "I'm in %s(%d)\n", __func__, __LINE__)
 #define EDEBUG(x, fmt, ...)     do { assert((fmt)); \  #define EDEBUG(x, fmt, ...)     do { assert((fmt)); \
Line 296  extern int elwix_Debug; Line 307  extern int elwix_Debug;
 #define ELOGGER(x, fmt, ...)    do { assert((fmt)); \  #define ELOGGER(x, fmt, ...)    do { assert((fmt)); \
                                         char __str[BUFSIZ] = { [0 ... BUFSIZ - 1] = 0 }; \                                          char __str[BUFSIZ] = { [0 ... BUFSIZ - 1] = 0 }; \
                                         snprintf(__str, sizeof __str, (fmt), ##__VA_ARGS__); \                                          snprintf(__str, sizeof __str, (fmt), ##__VA_ARGS__); \
                                        syslog((x), "Logger:%s(%d): %s\n", \                                        syslog((x), "Log:%s(%d): %s\n", \
                                                                 __func__, __LINE__, __str); \                                                                  __func__, __LINE__, __str); \
                                 } while (0)                                  } while (0)
   

Removed from v.1.20  
changed lines
  Added in v.1.25.12.1


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>