projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
setjmp.h: add struct tag for sigjmp_buf (GCC C++ compatibility)
[musl]
/
src
/
regex
/
regcomp.c
diff --git
a/src/regex/regcomp.c
b/src/regex/regcomp.c
index
712ca80
..
399989e
100644
(file)
--- a/
src/regex/regcomp.c
+++ b/
src/regex/regcomp.c
@@
-1052,8
+1052,6
@@
tre_parse(tre_parse_ctx_t *ctx)
}
case PARSE_UNION:
}
case PARSE_UNION:
- if (!*ctx->re)
- break;
switch (*ctx->re)
{
case CHAR_PIPE:
switch (*ctx->re)
{
case CHAR_PIPE:
@@
-1086,8
+1084,6
@@
tre_parse(tre_parse_ctx_t *ctx)
case PARSE_POSTFIX:
/* Parse postfix operators. */
case PARSE_POSTFIX:
/* Parse postfix operators. */
- if (!*ctx->re)
- break;
switch (*ctx->re)
{
case CHAR_PLUS:
switch (*ctx->re)
{
case CHAR_PLUS:
@@
-3095,7
+3091,7
@@
tre_ast_to_tnfa(tre_ast_node_t *node, tre_tnfa_transition_t *transitions,
int
int
-regcomp(regex_t *
preg, const char *
regex, int cflags)
+regcomp(regex_t *
restrict preg, const char *restrict
regex, int cflags)
{
tre_stack_t *stack;
tre_ast_node_t *tree, *tmp_ast_l, *tmp_ast_r;
{
tre_stack_t *stack;
tre_ast_node_t *tree, *tmp_ast_l, *tmp_ast_r;