/* $OpenLDAP$ */
/*
- * Copyright 1998-2002 The OpenLDAP Foundation, Redwood City, California, USA
+ * Copyright 1998-2003 The OpenLDAP Foundation, Redwood City, California, USA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
? 1 : strncasecmp((v1)->bv_val, (v2)->bv_val, (v1)->bv_len) ))
#define ber_bvccmp(v1,c) \
- ((v1)->bv_len == 1 ? (v1)->bv_val[0] == c : 0)
+ ( (v1)->bv_len == 1 && (v1)->bv_val[0] == (c) )
+
+#define ber_strccmp(s,c) \
+ ( (s)[0] == (c) && (s)[1] == '\0' )
+
+#define ber_bvchr(bv,c) \
+ memchr( (bv)->bv_val, (c), (bv)->bv_len )
+
+#define BER_BVC(x) { sizeof( (x) ) - 1, (x) }
+#define BER_BVNULL { 0L, NULL }
LDAP_END_DECL