Changeset: 93776e0e0f42 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/93776e0e0f42
Modified Files:
monetdb5/modules/mal/pcre.c
Branch: Jun2023
Log Message:
Remove dead code.
utfc8touc does not return -2, and we already checked for -1.
diffs (31 lines):
diff --git a/monetdb5/modules/mal/pcre.c b/monetdb5/modules/mal/pcre.c
--- a/monetdb5/modules/mal/pcre.c
+++ b/monetdb5/modules/mal/pcre.c
@@ -208,8 +208,6 @@ mywstrncaseeq(const char *restrict s1, c
return (*s2 == 0);
if (*s2 == 0)
return false;
- if (nn1 == (size_t) -1 || nn1 == (size_t) -2)
- return true; /* actually an error that shouldn't
happen */
#if SIZEOF_WCHAR_T == 2
if (c1 > 0x || *s2 > 0x) {
if (c1 != *s2)
@@ -237,9 +235,6 @@ mystrcasecmp(const char *s1, const char
return -(nn2 != 0 && nn2 != (size_t) -1);
if (nn2 == 0 || nn2 == (size_t) -1)
return 1;
- if (nn1 == (size_t) -1 || nn1 == (size_t) -2 ||
- nn2 == (size_t) -1 || nn2 == (size_t) -2)
- return 0;/* actually an error that shouldn't
happen */
#if SIZEOF_WCHAR_T == 2
if (c1 > 0x || c2 > 0x) {
if (c1 != c2)
@@ -264,8 +259,6 @@ mywstrcasecmp(const char *restrict s1, c
return -(*s2 != 0);
if (*s2 == 0)
return 1;
- if (nn1 == (size_t) -1 || nn1 == (size_t) -2)
- return 0;/* actually an error that shouldn't
happen */
#if SIZEOF_WCHAR_T == 2
if (c1 > 0x || *s2 > 0x) {
if (c1 != *s2)
___
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org