summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwrmr2026-01-02 21:23:05 -0500
committerwrmr2026-01-02 21:23:05 -0500
commit224d2deb2711682fcce843ab4a46b310108db5fb (patch)
tree5ae9671ef7ff92e2331f38b5b9e6657f6304e51c
parent2a0a6f2557f28aa14af0b79921c5d8e311730069 (diff)
remove C_EOF (unused) and lower the value C_ANY to prevent warnings
-rw-r--r--regex.c1
-rw-r--r--regex.h3
2 files changed, 1 insertions, 3 deletions
diff --git a/regex.c b/regex.c
index a31b94f..b73cd42 100644
--- a/regex.c
+++ b/regex.c
@@ -836,7 +836,6 @@ static inline isize re_search_try_match(ReSearch *s, size_t i, size_t n) {
}
if (s->flags & RE_SEARCH_LAST_CHUNK) {
f |= RE_THREAD_AT_END;
- s->c = C_EOF;
if (re_step_final(s, i, f)) {
found_i = i;
s->match_end = start + i;
diff --git a/regex.h b/regex.h
index 8f95319..d6dbbbc 100644
--- a/regex.h
+++ b/regex.h
@@ -53,10 +53,9 @@ typedef struct {
/* for RE_CHAR */
typedef enum {
- C_ANY = 0x80000000,
+ C_ANY = 0x40000000,
C_LINE_START,
C_LINE_END,
- C_EOF = 0xffffffff
} ReChSpecial;
typedef struct {