61#define REG_EXTENDED 0001
64#define REG_NEWLINE 0010
65#define REG_NOSPEC 0020
90#define REG_NOTBOL 00001
91#define REG_NOTEOL 00002
92#define REG_STARTEND 00004
93#define REG_TRACE 00400
94#define REG_LARGE 01000
95#define REG_BACKR 02000
97#if VSF_LINUX_APPLET_USE_REGEX == ENABLED
106# ifndef __VSF_APPLET__
111#if defined(__VSF_APPLET__) && (defined(__VSF_APPLET_LIB__) || defined(__VSF_APPLET_LINUX_REGEX_LIB__))\
112 && VSF_APPLET_CFG_ABI_PATCH != ENABLED && VSF_LINUX_APPLET_USE_REGEX == ENABLED
114#ifndef VSF_LINUX_APPLET_REGEX_VPLT
115# if VSF_LINUX_USE_APPLET == ENABLED
116# define VSF_LINUX_APPLET_REGEX_VPLT \
117 ((vsf_linux_regex_vplt_t *)(VSF_LINUX_APPLET_VPLT->regex_vplt))
119# define VSF_LINUX_APPLET_REGEX_VPLT \
120 ((vsf_linux_regex_vplt_t *)vsf_vplt((void *)0))
124#define VSF_LINUX_APPLET_REGEX_ENTRY(__NAME) \
125 VSF_APPLET_VPLT_ENTRY_FUNC_ENTRY(VSF_LINUX_APPLET_REGEX_VPLT, __NAME)
126#define VSF_LINUX_APPLET_REGEX_IMP(...) \
127 VSF_APPLET_VPLT_ENTRY_FUNC_IMP(VSF_LINUX_APPLET_REGEX_VPLT, __VA_ARGS__)
129VSF_LINUX_APPLET_REGEX_IMP(
regcomp,
int,
regex_t *preg,
const char *regex,
int cflags) {
131 return VSF_LINUX_APPLET_REGEX_ENTRY(
regcomp)(preg, regex, cflags);
133VSF_LINUX_APPLET_REGEX_IMP(
regerror,
size_t,
int errcode,
const regex_t *preg,
char *errbuf,
size_t errbuf_size) {
135 return VSF_LINUX_APPLET_REGEX_ENTRY(
regerror)(errcode, preg, errbuf, errbuf_size);
137VSF_LINUX_APPLET_REGEX_IMP(
regexec,
int,
const regex_t *preg,
const char *
string,
size_t nmatch,
regmatch_t pmatch[],
int eflags) {
139 return VSF_LINUX_APPLET_REGEX_ENTRY(
regexec)(preg, string, nmatch, pmatch, eflags);
143 VSF_LINUX_APPLET_REGEX_ENTRY(
regfree)(preg);
#define __END_DECLS
Definition getopt.h:43
#define __BEGIN_DECLS
Definition getopt.h:42
long off_t
Definition types.h:95
__VSF_VPLT_DECORATOR__ vsf_linux_regex_vplt_t vsf_linux_regex_vplt
Definition vsf_linux.c:5314
int regexec(const regex_t *, const char *, size_t, regmatch_t[], int)
__BEGIN_DECLS int regcomp(regex_t *, const char *, int)
off_t regoff_t
Definition regex.h:45
size_t regerror(int, const regex_t *, char *, size_t)
size_t re_nsub
Definition regex.h:49
struct re_guts * re_g
Definition regex.h:51
int re_magic
Definition regex.h:48
const char * re_endp
Definition regex.h:50
regoff_t rm_eo
Definition regex.h:56
regoff_t rm_so
Definition regex.h:55
vsf_vplt_info_t info
Definition regex.h:99
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(regerror)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(regexec)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(regcomp)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(regfree)
#define __VSF_VPLT_DECORATOR__
Definition vsf_cfg.h:93
#define VSF_APPLET_VPLT_ENTRY_FUNC_TRACE()
Definition vsf_cfg.h:165