Update of /repo/OpenLDAP/pkg/ldap/libraries/libldap
Modified Files:
error.c 1.80 -> 1.81
Log Message:
ITS#6197 - normalize & speed up ldap_err2string/ldap_perror():
Use same result code -> string mapping for both, removing ldap_int_error():
- Classify unknown error codes as API/extension/etc like _err2string did.
- Pass all strings through _(), i.e. the optional gettext, as _perror did.
Also use a switch instead of linear search for the code->string mapping.
Hopefully the compiler will optimize that. Though the extra gettext,
if anyone uses it, probably counters that speedup.
CVS Web URLs:
http://www.openldap.org/devel/cvsweb.cgi/libraries/libldap/http://www.openldap.org/devel/cvsweb.cgi/libraries/libldap/error.c
Changes are generally available on cvs.openldap.org (and CVSweb)
within 30 minutes of being committed.