summaryrefslogtreecommitdiff
path: root/posix/regex_internal.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-09-23 05:43:03 +0000
committerUlrich Drepper <drepper@redhat.com>2003-09-23 05:43:03 +0000
commite2b6bfa33950b3fa75f2b473f4b6659da3d53b4a (patch)
tree83e0fbbbc32a668ca26ec4a2bde32bddaf03bc76 /posix/regex_internal.h
parentce85933261d37a0cd5345687acc948fe5bfdabd0 (diff)
Update.
* posix/regcomp.c (build_word_op): Rename like... (build_charclass_op): ...this. Accept two extra parameters, CLASS_NAME and EXTRA. Add EXTRA to the result, not only _. (peek_token): accept \s and \S as OP_SPACE and OP_NOTSPACE. (parse_expression): replace build_word_op with build_charclass_op, add new arguments, accept OP_SPACE and OP_NOTSPACE. * posix/regex_internal.h (re_token_type_t): Add OP_SPACE and OP_NOTSPACE.
Diffstat (limited to 'posix/regex_internal.h')
-rw-r--r--posix/regex_internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/posix/regex_internal.h b/posix/regex_internal.h
index 9dd3fe55b3..b2fe766f78 100644
--- a/posix/regex_internal.h
+++ b/posix/regex_internal.h
@@ -182,6 +182,8 @@ typedef enum
OP_CLOSE_CHAR_CLASS,
OP_WORD,
OP_NOTWORD,
+ OP_SPACE,
+ OP_NOTSPACE,
BACK_SLASH,
/* Tree type, these are used only by tree. */