Home
last modified time | relevance | path

Searched refs:preg (Results 1 – 4 of 4) sorted by relevance

/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregfree.c104 regex_t *preg) in __weak_alias()
108 _DIAGASSERT(preg != NULL); in __weak_alias()
110 _DIAGASSERT(preg->re_magic == MAGIC1); in __weak_alias()
111 if (preg->re_magic != MAGIC1) /* oops */ in __weak_alias()
114 g = preg->re_g; in __weak_alias()
117 preg->re_magic = 0; /* mark it invalid */ in __weak_alias()
Dregerror.c106 static const char *regatoi(const regex_t *preg, char *localbuf, size_t buflen); in __weak_alias()
164 const regex_t *preg, in regerror() argument
174 _DIAGASSERT(errcode != REG_ATOI || preg != NULL); in regerror()
178 s = regatoi(preg, convbuf, sizeof convbuf); in regerror()
209 const regex_t *preg, in regatoi() argument
216 if (strcmp(r->name, preg->re_endp) == 0) in regatoi()
Dregexec.c204 const regex_t *preg,
210 struct re_guts *g = preg->re_g;
218 _DIAGASSERT(preg != NULL);
221 if (preg->re_magic != MAGIC1 || g->magic != MAGIC2)
Dregcomp.c235 regex_t *preg, in regcomp() argument
250 _DIAGASSERT(preg != NULL); in regcomp()
258 if (preg->re_endp < pattern) in regcomp()
260 len = preg->re_endp - pattern; in regcomp()
320 preg->re_nsub = g->nsub; in regcomp()
321 preg->re_g = g; in regcomp()
322 preg->re_magic = MAGIC1; in regcomp()
331 regfree(preg); in regcomp()