change log updated
[public/netxms.git] / include / netxms-regex.h
1 /*
2 ** NetXMS - Network Management System
3 ** Copyright (C) 2003-2010 Victor Kirhenshtein
4 **
5 ** This program is free software; you can redistribute it and/or modify
6 ** it under the terms of the GNU Lesser General Public License as published by
7 ** the Free Software Foundation; either version 3 of the License, or
8 ** (at your option) any later version.
9 **
10 ** This program is distributed in the hope that it will be useful,
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ** GNU General Public License for more details.
14 **
15 ** You should have received a copy of the GNU Lesser General Public License
16 ** along with this program; if not, write to the Free Software
17 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 **
19 ** File: netxms-regex.h
20 **
21 **/
22
23 #ifndef _netxms_regex_h
24 #define _netxms_regex_h
25
26 #ifdef USE_BUNDLED_LIBTRE
27 #include "../src/libtre/tre.h"
28
29 #ifdef UNICODE
30 #define _tregcomp tre_regwcomp
31 #define _tregexec tre_regwexec
32 #define _tregncomp tre_regwncomp
33 #define _tregnexec tre_regwnexec
34 #else
35 #define _tregcomp tre_regcomp
36 #define _tregexec tre_regexec
37 #define _tregncomp tre_regncomp
38 #define _tregnexec tre_regnexec
39 #endif
40
41 #define regfree tre_regfree
42
43 #else
44 #include <tre/regex.h>
45
46 #ifdef UNICODE
47 #define _tregcomp tre_regwcomp
48 #define _tregexec tre_regwexec
49 #define _tregncomp tre_regwncomp
50 #define _tregnexec tre_regwnexec
51 #else
52 #define _tregcomp tre_regcomp
53 #define _tregexec tre_regexec
54 #define _tregncomp tre_regncomp
55 #define _tregnexec tre_regnexec
56 #endif
57
58 #endif /* USE_BUNDLED_LIBTRE */
59
60 #endif /* _netxms_regex_h */