public inbox for cygwin-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/main] Cygwin: regex: fix build errors Date: Thu, 16 Mar 2023 12:54:51 +0000 (GMT) [thread overview] Message-ID: <20230316125451.4CC2638582AC@sourceware.org> (raw) 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:
reply other threads:[~2023-03-16 12:54 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230316125451.4CC2638582AC@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).