From 1566454e6e9bbd551835e7aac425b1a5286ff54b Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sat, 1 Jul 2000 04:58:23 +0000 Subject: [PATCH] Add sets to NT build, remove LINT --- servers/slapd/libslapd.dsp | 8 ++++++++ servers/slapd/sets.c | 7 +++++-- servers/slapd/slap.h | 3 +++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/servers/slapd/libslapd.dsp b/servers/slapd/libslapd.dsp index da4167d05a..700b29c4bc 100644 --- a/servers/slapd/libslapd.dsp +++ b/servers/slapd/libslapd.dsp @@ -312,6 +312,14 @@ SOURCE=.\search.c # End Source File # Begin Source File +SOURCE=.\sets.c +# End Source File +# Begin Source File + +SOURCE=.\sets.h +# End Source File +# Begin Source File + SOURCE=.\slap.h # End Source File # Begin Source File diff --git a/servers/slapd/sets.c b/servers/slapd/sets.c index 622249377d..0fdec47ee2 100644 --- a/servers/slapd/sets.c +++ b/servers/slapd/sets.c @@ -4,9 +4,12 @@ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ -#include "portable.h" -#include +#include "portable.h" +#include +#include + +#include "slap.h" #include "sets.h" static char **set_join (char **lset, int op, char **rset); diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index f1d8de5cf4..f7d8175d12 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -78,6 +78,9 @@ LDAP_BEGIN_DECL #define ASCII_DIGIT(c) ( (c) >= '0' && (c) <= '9' ) #define ASCII_ALNUM(c) ( ASCII_ALPHA(c) || ASCII_DIGIT(c) ) +#define ASCII_PRINTABLE(c) ( (c) >= ' ' && (c) <= '~' ) +#define FILTER_ESCAPE(c) ( (c) == '\\' || (c) == '(' || (c) == ')' || !ASCII_PRINTABLE(c) ) + #define DN_SEPARATOR(c) ((c) == ',' || (c) == ';') #define RDN_SEPARATOR(c) ((c) == ',' || (c) == ';' || (c) == '+') #define RDN_NEEDSESCAPE(c) ((c) == '\\' || (c) == '"') -- 2.39.5