]> git.sur5r.net Git - openldap/blob - include/regex.h
Include of portable.h must be before use of USE_SYSCONF
[openldap] / include / regex.h
1 #if defined( MACOS ) || defined( DOS ) || defined( _WIN32 ) || defined( NEED_BSDREGEX )
2 /*
3  * Copyright (c) 1993 Regents of the University of Michigan.
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms are permitted
7  * provided that this notice is preserved and that due credit is given
8  * to the University of Michigan at Ann Arbor. The name of the University
9  * may not be used to endorse or promote products derived from this
10  * software without specific prior written permission. This software
11  * is provided ``as is'' without express or implied warranty.
12  */
13 /*
14  * regex.h -- includes for regular expression matching routines
15  * 13 August 1993 Mark C Smith
16  */
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22 #if !defined( NEEDPROTOS ) && defined( __STDC__ )
23 #define NEEDPROTOS
24 #endif
25
26 #ifdef NEEDPROTOS
27 char *re_comp( char *pat );
28 int re_exec( char *lp );
29 void re_modw( char *s );
30 int re_subs( char *src, char *dst );
31 #else /* NEEDPROTOS */
32 char *re_comp();
33 int re_exec();
34 void re_modw();
35 int re_subs();
36 #endif /* NEEDPROTOS */
37
38 #define re_fail( m, p )
39
40 #ifdef __cplusplus
41 }
42 #endif
43 #endif /* MACOS or DOS or NEED_BSDREGEX */