]> git.sur5r.net Git - openldap/commit
Add LBER_ and LDAP_ memory allocators/deallocators for internal
authorKurt Zeilenga <kurt@openldap.org>
Sat, 29 May 1999 01:19:14 +0000 (01:19 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 29 May 1999 01:19:14 +0000 (01:19 +0000)
commit1bcec8bf6a17a65396b2c947faed846d20428db9
tree915d474c76eb71a250cde78acf1a66dceca32efe
parent27caa58f5138839cc0e120ab91ea05dbad5e6a1c
Add LBER_ and LDAP_ memory allocators/deallocators for internal
library use:
  LBER_ macros expand to system routines.
  LDAP_ macros expand to new ber_ allocators.

Add ber_ and ldap_ memory allocators/deallocator:
  ber_ routines are wrappers of LBER_ macros.
  ldap_ routines are wrappers of ber_ routines.

Removed safe_realloc() macro from various files.  This issue
(if an issue) should be resolved across whole package.

ldapmodify.c now uses ber_ allocators to resolve ber_bvfree()
vs. WIN32 multiple heaps issue.

These changes should facilate implementation of
  ber_set_option( NULL, LBER_OPT_MEMORY_FN, ...)
and
  ldap_set_option( NULL, LDAP_OPT_MEMORY_FN, ...).
48 files changed:
clients/tools/ldapdelete.c
clients/tools/ldapmodify.c
clients/tools/ldapmodrdn.c
include/lber.h
include/ldap.h
libraries/liblber/decode.c
libraries/liblber/encode.c
libraries/liblber/io.c
libraries/liblber/lber-int.h
libraries/liblber/liblber.dsp
libraries/liblber/memory.c [new file with mode: 0644]
libraries/liblber/sockbuf.c
libraries/libldap/abandon.c
libraries/libldap/cache.c
libraries/libldap/charset.c
libraries/libldap/cldap.c
libraries/libldap/controls.c
libraries/libldap/disptmpl.c
libraries/libldap/dsparse.c
libraries/libldap/error.c
libraries/libldap/free.c
libraries/libldap/friendly.c
libraries/libldap/getdn.c
libraries/libldap/getdxbyname.c
libraries/libldap/getentry.c
libraries/libldap/getfilter.c
libraries/libldap/getvalues.c
libraries/libldap/init.c
libraries/libldap/kbind.c
libraries/libldap/ldap-int.h
libraries/libldap/open.c
libraries/libldap/options.c
libraries/libldap/os-ip.c
libraries/libldap/references.c
libraries/libldap/request.c
libraries/libldap/result.c
libraries/libldap/schema.c
libraries/libldap/search.c
libraries/libldap/sort.c
libraries/libldap/srchpref.c
libraries/libldap/string.c
libraries/libldap/tmplout.c
libraries/libldap/ufn.c
libraries/libldap/unbind.c
libraries/libldap/url.c
libraries/libldap/util-int.c
libraries/libldap_r/libldap_r.dsp
tests/progs/slapd-addel.c