1 /* $NetBSD: pattern.h,v 1.4 2013/09/04 19:44:21 tron Exp $ */
4 * Copyright (C) 1984-2012 Mark Nudelman
6 * You may distribute under the terms of either the GNU General Public
7 * License or the Less License, as specified in the README file.
9 * For more information, see the README file.
15 #define DEFINE_PATTERN(name) struct re_pattern_buffer *name
16 #define CLEAR_PATTERN(name) name = NULL
19 #if HAVE_POSIX_REGCOMP
23 #define REGCOMP_FLAG (more_mode ? 0 : REG_EXTENDED)
25 #define REGCOMP_FLAG 0
27 #define DEFINE_PATTERN(name) regex_t *name
28 #define CLEAR_PATTERN(name) name = NULL
33 #define DEFINE_PATTERN(name) pcre *name
34 #define CLEAR_PATTERN(name) name = NULL
40 #define DEFINE_PATTERN(name) int name
41 #define CLEAR_PATTERN(name) name = 0
48 #define DEFINE_PATTERN(name) char *name
49 #define CLEAR_PATTERN(name) name = NULL
54 #define DEFINE_PATTERN(name) struct regexp *name
55 #define CLEAR_PATTERN(name) name = NULL
59 #define DEFINE_PATTERN(name)
60 #define CLEAR_PATTERN(name)