/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 1998-2003 The OpenLDAP Foundation.
+ * Copyright 1998-2005 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
LBER_V (BER_ERRNO_FN) ber_int_errno_fn;
+#ifdef LDAP_MEMORY_TRACE
+# ifndef LDAP_MEMORY_DEBUG
+# define LDAP_MEMORY_DEBUG 1
+# endif
+#endif
+
+#ifdef LDAP_MEMORY_DEBUG
+LBER_V (long) ber_int_meminuse;
+#endif
+
struct lber_options {
short lbo_valid;
unsigned short lbo_options;
int lbo_debug;
- long lbo_meminuse;
};
-#ifdef NEW_LOGGING
-/*
-# ifdef LDAP_DEBUG
-# ifdef LDAP_LOG
-# undef LDAP_LOG
-# endif
-# define LDAP_LOG(a) ber_pvt_log_output a
- */
-# define BER_DUMP(a) ber_output_dump a
-/*
-# else
-# define LDAP_LOG(a)
-# define BER_DUMP(a)
-# endif
- */
-#endif
-
LBER_F( int ) ber_pvt_log_output(
const char *subsystem,
int level,
*/
#define ber_log_printf ber_pvt_log_printf
-#ifdef NEW_LOGGING
-LBER_F( int )
-ber_output_dump LDAP_P((
- const char *subsys,
- int level,
- BerElement *ber,
- int inout ));
-#endif
-
LBER_F( int )
ber_log_bprint LDAP_P((
int errlvl,