summaryrefslogtreecommitdiff
path: root/libc/misc/regex/regcomp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/regex/regcomp.c')
-rw-r--r--libc/misc/regex/regcomp.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/libc/misc/regex/regcomp.c b/libc/misc/regex/regcomp.c
index ab6bdd876..210ae05ee 100644
--- a/libc/misc/regex/regcomp.c
+++ b/libc/misc/regex/regcomp.c
@@ -120,7 +120,7 @@ static bin_tree_t *duplicate_tree (const bin_tree_t *src, re_dfa_t *dfa);
static void free_token (re_token_t *node);
static reg_errcode_t free_tree (void *extra, bin_tree_t *node);
static reg_errcode_t mark_opt_subexp (void *extra, bin_tree_t *node);
-
+
/* This table gives an error message for each of the error codes listed
in regex.h. Obviously the order here has to be same as there.
POSIX doesn't require that we do anything for REG_NOERROR,
@@ -200,7 +200,7 @@ const size_t __re_error_msgid_idx[] attribute_hidden =
REG_ESIZE_IDX,
REG_ERPAREN_IDX
};
-
+
/* Entry points for GNU code. */
/* re_compile_pattern is the GNU regular expression compiler: it
@@ -406,7 +406,7 @@ re_compile_fastmap_iter (regex_t *bufp, const re_dfastate_t *init_state,
}
}
}
-
+
/* Entry point for POSIX code. */
/* regcomp takes a regular expression as a string and compiles it.
@@ -632,7 +632,7 @@ regfree (preg)
#if defined _LIBC || defined __UCLIBC__
strong_alias(__regfree, regfree)
#endif
-
+
/* Entry points compatible with 4.2 BSD regex library. We don't define
them unless specifically requested. */
@@ -701,7 +701,7 @@ libc_freeres_fn (free_mem)
#endif
#endif /* _REGEX_RE_COMP */
-
+
/* Internal entry point.
Compile the regular expression PATTERN, whose length is LENGTH.
SYNTAX indicate regular expression's syntax. */
@@ -1019,7 +1019,7 @@ create_initial_state (re_dfa_t *dfa)
re_node_set_free (&init_nodes);
return REG_NOERROR;
}
-
+
#ifdef RE_ENABLE_I18N
/* If it is possible to do searching in single byte encoding instead of UTF-8
to speed things up, set dfa->mb_cur_max to 1, clear is_utf8 and change
@@ -1089,7 +1089,7 @@ optimize_utf8 (re_dfa_t *dfa)
dfa->has_mb_node = dfa->nbackref > 0 || has_period;
}
#endif
-
+
/* Analyze the structure tree, and calculate "first", "next", "edest",
"eclosure", and "inveclosure". */
@@ -1700,7 +1700,7 @@ calc_eclosure_iter (re_node_set *new_set, re_dfa_t *dfa, int node, int root)
*new_set = eclosure;
return REG_NOERROR;
}
-
+
/* Functions for token which are used in the parser. */
/* Fetch a token from INPUT.
@@ -2037,7 +2037,7 @@ peek_token_bracket (re_token_t *token, re_string_t *input, reg_syntax_t syntax)
}
return 1;
}
-
+
/* Functions for parser. */
/* Entry point of the parser.
@@ -3660,7 +3660,7 @@ fetch_number (re_string_t *input, re_token_t *token, reg_syntax_t syntax)
}
return num;
}
-
+
#ifdef RE_ENABLE_I18N
static void
free_charset (re_charset_t *cset)
@@ -3676,7 +3676,7 @@ free_charset (re_charset_t *cset)
re_free (cset);
}
#endif /* RE_ENABLE_I18N */
-
+
/* Functions for binary tree operation. */
/* Create a tree node. */