public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin/main] Cygwin: regex: fix build errors
@ 2023-03-16 12:54 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2023-03-16 12:54 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=988c304ec253958759658d0bf5d03a36e6971b94
commit 988c304ec253958759658d0bf5d03a36e6971b94
Author: Corinna Vinschen <corinna@vinschen.de>
AuthorDate: Thu Mar 16 11:20:11 2023 +0100
Commit: Corinna Vinschen <corinna@vinschen.de>
CommitDate: Thu Mar 16 12:50:08 2023 +0100
Cygwin: regex: fix build errors
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/regex/regcomp.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/winsup/cygwin/regex/regcomp.c b/winsup/cygwin/regex/regcomp.c
index 6b7ddf5d0b88..7e9f5a50f21a 100644
--- a/winsup/cygwin/regex/regcomp.c
+++ b/winsup/cygwin/regex/regcomp.c
@@ -61,6 +61,7 @@ __FBSDID("$FreeBSD$");
#include "collate.h"
#endif
+#include "winsup.h"
#include "utils.h"
#include "regex2.h"
@@ -932,7 +933,7 @@ p_simp_re(struct parse *p, struct branchc *bc)
* appears otherwise.
*/
(void)REQUIRE(bc->nchain == 0, REG_BADRPT);
- /* FALLTHROUGH */
+ fallthrough;
default:
if (p->error != 0)
return (false); /* Definitely not $... */
@@ -1170,13 +1171,13 @@ p_b_pseudoclass(struct parse *p, char c) {
switch (c) {
case 'W':
cs->invert = 1;
- /* PASSTHROUGH */
+ fallthrough;
case 'w':
p_b_cclass_named(p, cs, "alnum");
break;
case 'S':
cs->invert = 1;
- /* PASSTHROUGH */
+ fallthrough;
case 's':
p_b_cclass_named(p, cs, "space");
break;
@@ -1854,7 +1855,7 @@ findmust(struct parse *p, struct re_guts *g)
* UTF-8 (see RFC 3629).
*/
if (MB_CUR_MAX > 1 &&
- strcmp(_CurrentRuneLocale->__encoding, "UTF-8") != 0)
+ strcmp(__current_locale_charset (), "UTF-8") != 0)
return;
/* find the longest OCHAR sequence in strip */
@@ -1893,7 +1894,7 @@ findmust(struct parse *p, struct re_guts *g)
return;
}
} while (OP(s) != (sop)O_QUEST && OP(s) != (sop)O_CH);
- /* FALLTHROUGH */
+ fallthrough;
case OBOW: /* things that break a sequence */
case OEOW:
case OBOL:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-16 12:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-16 12:54 [newlib-cygwin/main] Cygwin: regex: fix build errors Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).