From: Pierangelo Masarati Date: Sat, 9 Sep 2006 16:16:27 +0000 (+0000) Subject: rename functions/macros (no impact, they're currently unused) X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~179 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9aae5fda233df3455d0c5ec2968764323664d48d;p=openldap rename functions/macros (no impact, they're currently unused) --- diff --git a/include/lber_pvt.h b/include/lber_pvt.h index b2bb0153db..4cf90bc661 100644 --- a/include/lber_pvt.h +++ b/include/lber_pvt.h @@ -172,26 +172,26 @@ ber_bvarray_add_x LDAP_P(( BerVarray *p, BerValue *bv, void *ctx )); #define ber_bvrchr(bv,c) \ ((char *) memrchr( (bv)->bv_val, (c), (bv)->bv_len )) -#define ber_bvchr_right(dst,bv,c) \ +#define ber_bvchr_post(dst,bv,c) \ do { \ (dst)->bv_val = memchr( (bv)->bv_val, (c), (bv)->bv_len ); \ (dst)->bv_len = (dst)->bv_val ? (bv)->bv_len - ((dst)->bv_val - (bv)->bv_val) : 0; \ } while (0) -#define ber_bvchr_left(dst,bv,c) \ +#define ber_bvchr_pre(dst,bv,c) \ do { \ (dst)->bv_val = memchr( (bv)->bv_val, (c), (bv)->bv_len ); \ (dst)->bv_len = (dst)->bv_val ? ((dst)->bv_val - (bv)->bv_val) : (bv)->bv_len; \ (dst)->bv_val = (bv)->bv_val; \ } while (0) -#define ber_bvrchr_right(dst,bv,c) \ +#define ber_bvrchr_post(dst,bv,c) \ do { \ (dst)->bv_val = memrchr( (bv)->bv_val, (c), (bv)->bv_len ); \ (dst)->bv_len = (dst)->bv_val ? (bv)->bv_len - ((dst)->bv_val - (bv)->bv_val) : 0; \ } while (0) -#define ber_bvrchr_left(dst,bv,c) \ +#define ber_bvrchr_pre(dst,bv,c) \ do { \ (dst)->bv_val = memrchr( (bv)->bv_val, (c), (bv)->bv_len ); \ (dst)->bv_len = (dst)->bv_val ? ((dst)->bv_val - (bv)->bv_val) : (bv)->bv_len; \