summaryrefslogtreecommitdiffhomepage
path: root/src/cregex.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-12-20 10:59:31 +0100
committerTyge Løvset <[email protected]>2022-12-20 10:59:31 +0100
commit21817cae767d72e6007150b639f9365e35502173 (patch)
tree4c897b401c75a243f11c6ea8cf0ca8699376a680 /src/cregex.c
parent6167fa5e361b2954440594cb693f25f643eb9e0a (diff)
downloadSTC-modified-21817cae767d72e6007150b639f9365e35502173.tar.gz
STC-modified-21817cae767d72e6007150b639f9365e35502173.zip
Renamed c_sv() => c_SV() and reverted cstr_new() => cstr_lit(). Old names are deprecated (not removed).
Diffstat (limited to 'src/cregex.c')
-rw-r--r--src/cregex.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cregex.c b/src/cregex.c
index 94e591a4..c30ff967 100644
--- a/src/cregex.c
+++ b/src/cregex.c
@@ -209,7 +209,7 @@ utfruneicase(const char *s, _Rune c)
_Rune r = *s;
int n;
if (c < 128) for (c = tolower(c); r; ++s, r = *(unsigned char*)s) {
- if (r < 128 && tolower(r) == c) return s;
+ if (r < 128 && (unsigned)tolower(r) == c) return s;
}
else for (c = utf8_casefold(c); r; s += n, r = *(unsigned char*)s) {
if (r < 128) { n = 1; continue; }
@@ -653,7 +653,6 @@ _lexutfclass(_Parser *par, _Rune *rp)
case 'v': rune = '\v'; break; \
case 'f': rune = '\f'; break; \
case 'a': rune = '\a'; break; \
- case 'e': rune = '\e'; break; \
case 'd': rune = UTF_d; break; \
case 'D': rune = UTF_D; break; \
case 's': rune = UTF_s; break; \