diff options
Diffstat (limited to 'lib/regex.h')
-rw-r--r-- | lib/regex.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/regex.h b/lib/regex.h new file mode 100644 index 0000000000000..78034d1c04e40 --- /dev/null +++ b/lib/regex.h @@ -0,0 +1,38 @@ +/* + regex.h - TRE legacy API + + This software is released under a BSD-style license. + See the file LICENSE for details and copyright. + + This header is for source level compatibility with old code using + the <tre/regex.h> header which defined the TRE API functions without + a prefix. New code should include <tre/tre.h> instead. + +*/ + +#ifndef TRE_REXEX_H +#define TRE_REGEX_H 1 + +#include "tre.h" + +#ifndef TRE_USE_SYSTEM_REGEX_H +#define regcomp tre_regcomp +#define regerror tre_regerror +#define regexec tre_regexec +#define regfree tre_regfree +#endif /* TRE_USE_SYSTEM_REGEX_H */ + +#define regacomp tre_regacomp +#define regaexec tre_regaexec +#define regancomp tre_regancomp +#define reganexec tre_reganexec +#define regawncomp tre_regawncomp +#define regawnexec tre_regawnexec +#define regncomp tre_regncomp +#define regnexec tre_regnexec +#define regwcomp tre_regwcomp +#define regwexec tre_regwexec +#define regwncomp tre_regwncomp +#define regwnexec tre_regwnexec + +#endif /* TRE_REGEX_H */ |