* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
-#include "portable.h"
-#include <ac/string.h>
+#include "portable.h"\r
+#include <stdio.h>\r
+#include <ac/string.h>
+\r
+#include "slap.h"
#include "sets.h"
static char **set_join (char **lset, int op, char **rset);
#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) == '"')