Diff for /include/ldap_log.h between versions 1.11 and 1.15

version 1.11, 1999/06/07 16:37:16 version 1.15, 1999/10/28 05:28:53
Line 1 Line 1
   /* $OpenLDAP$ */
 /*  /*
  * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA   * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
  * All rights reserved.   * All rights reserved.
Line 59  extern int ldap_syslog_level; Line 60  extern int ldap_syslog_level;
 #ifdef LDAP_SYSLOG  #ifdef LDAP_SYSLOG
 #define Debug( level, fmt, arg1, arg2, arg3 )   \  #define Debug( level, fmt, arg1, arg2, arg3 )   \
         do { \          do { \
                 if ( ldap_debug & (level) ) \                  lutil_debug( ldap_debug, (level), (fmt), (arg1), (arg2), (arg3) ); \
                         fprintf( stderr, (fmt), (arg1), (arg2), (arg3) ); \  
                 if ( ldap_syslog & (level) ) \                  if ( ldap_syslog & (level) ) \
                         syslog( ldap_syslog_level, (fmt), (arg1), (arg2), (arg3) ); \                          syslog( ldap_syslog_level, (fmt), (arg1), (arg2), (arg3) ); \
         } while ( 0 )          } while ( 0 )
 #else /* LDAP_SYSLOG */  
 #ifndef HAVE_WINSOCK  #else
 #define Debug( level, fmt, arg1, arg2, arg3 ) \  #define Debug( level, fmt, arg1, arg2, arg3 ) \
         do { \          lutil_debug( ldap_debug, (level), (fmt), (arg1), (arg2), (arg3) )
                 if ( ldap_debug & (level) ) \  #endif
                         fprintf( stderr, (fmt), (arg1), (arg2), (arg3) ); \  
         } while ( 0 )  
 #else /* !WINSOCK */  
 LDAP_F(void) Debug LDAP_P(( int level, const char* fmt, ... ));  
 #endif /* !WINSOCK */  
 #endif /* LDAP_SYSLOG */  
 #else /* LDAP_DEBUG */  #else /* LDAP_DEBUG */
 #define Debug( level, fmt, arg1, arg2, arg3 )  #define Debug( level, fmt, arg1, arg2, arg3 )
 #endif /* LDAP_DEBUG */  #endif /* LDAP_DEBUG */
   
   #ifdef __MINGW32__
   #   undef LDAP_F_PRE
   #   ifdef LIBLUTIL_DECL
   #       define LDAP_F_PRE       extern __declspec(LIBLUTIL_DECL)
   #   else
   #       define LDAP_F_PRE       extern
   #   endif
   #endif
   
   LDAP_F(void) lutil_debug LDAP_P((
           int debug, int level,
           const char* fmt, ... )) LDAP_GCCATTR((format(printf, 3, 4)));
   
 LDAP_END_DECL  LDAP_END_DECL
   
 #endif /* _LDAP_LOG_H */  #endif /* _LDAP_LOG_H */

Removed from v.1.11  
changed lines
  Added in v.1.15


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org