From: Andreas Schwab <schwab@linux-m68k.org>
To: "наб via Libc-alpha" <libc-alpha@sourceware.org>
Cc: наб <nabijaczleweli@nabijaczleweli.xyz>
Subject: Re: [PATCH 1/3] posix: add (failing) test for REG_STARTEND
Date: Sat, 22 Apr 2023 09:11:56 +0200 [thread overview]
Message-ID: <87wn24crwj.fsf@linux-m68k.org> (raw)
In-Reply-To: <6ae8f638ecd1a0f0d76a104c8903baf96ecd317a.1682130047.git.nabijaczleweli@nabijaczleweli.xyz> (=?utf-8?B?ItC90LDQsQ==?= via Libc-alpha"'s message of "Sat, 22 Apr 2023 04:21:50 +0200")
tst-reg-startend.c:75:27: error: stray ‘\304’ in program
static const char *const a��_data[2] = {"_aaćdef", "_aćdef"};
^
tst-reg-startend.c:75:28: error: stray ‘\207’ in program
static const char *const a��_data[2] = {"_aaćdef", "_aćdef"};
^
tst-reg-startend.c:75:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_data’
static const char *const ać_data[2] = {"_aaćdef", "_aćdef"};
^~~~~
tst-reg-startend.c:76:20: error: stray ‘\304’ in program
static const bool a��_exp[] = {false, true};
^
tst-reg-startend.c:76:21: error: stray ‘\207’ in program
static const bool a��_exp[] = {false, true};
^
tst-reg-startend.c:76:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_exp’
static const bool ać_exp[] = {false, true};
^~~~
tst-reg-startend.c:79:6: error: stray ‘\304’ in program
testa�� (void)
^
tst-reg-startend.c:79:7: error: stray ‘\207’ in program
testa�� (void)
^
tst-reg-startend.c: In function ‘testa’:
tst-reg-startend.c:89:27: error: stray ‘\304’ in program
if (regexec (&rgx, a��_data[i], 1, &match, REG_STARTEND) == ać_exp[i])
^
tst-reg-startend.c:89:28: error: stray ‘\207’ in program
if (regexec (&rgx, a��_data[i], 1, &match, REG_STARTEND) == ać_exp[i])
^
tst-reg-startend.c:89:26: error: ‘a’ undeclared (first use in this function)
if (regexec (&rgx, ać_data[i], 1, &match, REG_STARTEND) == ać_exp[i])
^
tst-reg-startend.c:89:26: note: each undeclared identifier is reported only once for each function it appears in
tst-reg-startend.c:89:29: error: expected ‘)’ before ‘_data’
if (regexec (&rgx, ać_data[i], 1, &match, REG_STARTEND) == ać_exp[i])
^~~~~
tst-reg-startend.c:89:11: error: too few arguments to function ‘regexec’
if (regexec (&rgx, ać_data[i], 1, &match, REG_STARTEND) == ać_exp[i])
^~~~~~~
In file included from ../include/regex.h:2:0,
from tst-reg-startend.c:15:
../posix/regex.h:679:12: note: declared here
extern int regexec (const regex_t *_Restrict_ __preg,
^~~~~~~
tst-reg-startend.c:89:68: error: stray ‘\304’ in program
if (regexec (&rgx, ać_data[i], 1, &match, REG_STARTEND) == a��_exp[i])
^
tst-reg-startend.c:89:69: error: stray ‘\207’ in program
if (regexec (&rgx, ać_data[i], 1, &match, REG_STARTEND) == a��_exp[i])
^
tst-reg-startend.c:89:70: error: expected ‘)’ before ‘_exp’
if (regexec (&rgx, ać_data[i], 1, &match, REG_STARTEND) == ać_exp[i])
^~~~
tst-reg-startend.c:90:18: error: stray ‘\304’ in program
BASEERR(a��_data), fprintf (stdout, ": %s match\n",
^
tst-reg-startend.c:48:13: note: in definition of macro ‘BASEERR’
fwrite (data[i] + bound.rm_so, 1, bound.rm_eo - bound.rm_so, stdout)
^~~~
tst-reg-startend.c:90:19: error: stray ‘\207’ in program
BASEERR(a��_data), fprintf (stdout, ": %s match\n",
^
tst-reg-startend.c:48:13: note: in definition of macro ‘BASEERR’
fwrite (data[i] + bound.rm_so, 1, bound.rm_eo - bound.rm_so, stdout)
^~~~
tst-reg-startend.c:90:20: error: expected ‘)’ before ‘_data’
BASEERR(ać_data), fprintf (stdout, ": %s match\n",
^
tst-reg-startend.c:48:13: note: in definition of macro ‘BASEERR’
fwrite (data[i] + bound.rm_so, 1, bound.rm_eo - bound.rm_so, stdout)
^~~~
tst-reg-startend.c:48:5: error: too few arguments to function ‘fwrite’
fwrite (data[i] + bound.rm_so, 1, bound.rm_eo - bound.rm_so, stdout)
^
tst-reg-startend.c:90:9: note: in expansion of macro ‘BASEERR’
BASEERR(ać_data), fprintf (stdout, ": %s match\n",
^~~~~~~
In file included from ../include/stdio.h:14:0,
from tst-reg-startend.c:16:
../libio/stdio.h:739:15: note: declared here
extern size_t fwrite (const void *__restrict __ptr, size_t __size,
^~~~~~
tst-reg-startend.c:91:37: error: stray ‘\304’ in program
a��_exp[i] ? "no" : "yes");
^
tst-reg-startend.c:91:38: error: stray ‘\207’ in program
a��_exp[i] ? "no" : "yes");
^
tst-reg-startend.c:91:39: error: expected ‘)’ before ‘_exp’
ać_exp[i] ? "no" : "yes");
^~~~
tst-reg-startend.c:90:26: error: left-hand operand of comma expression has no effect [-Werror=unused-value]
BASEERR(ać_data), fprintf (stdout, ": %s match\n",
^
tst-reg-startend.c:94:18: error: stray ‘\304’ in program
BASEERR(a��_data), fprintf (stdout, ": wanted {%d, %d}, got {%d, %d}\n",
^
tst-reg-startend.c:48:13: note: in definition of macro ‘BASEERR’
fwrite (data[i] + bound.rm_so, 1, bound.rm_eo - bound.rm_so, stdout)
^~~~
tst-reg-startend.c:94:19: error: stray ‘\207’ in program
BASEERR(a��_data), fprintf (stdout, ": wanted {%d, %d}, got {%d, %d}\n",
^
tst-reg-startend.c:48:13: note: in definition of macro ‘BASEERR’
fwrite (data[i] + bound.rm_so, 1, bound.rm_eo - bound.rm_so, stdout)
^~~~
tst-reg-startend.c:94:20: error: expected ‘)’ before ‘_data’
BASEERR(ać_data), fprintf (stdout, ": wanted {%d, %d}, got {%d, %d}\n",
^
tst-reg-startend.c:48:13: note: in definition of macro ‘BASEERR’
fwrite (data[i] + bound.rm_so, 1, bound.rm_eo - bound.rm_so, stdout)
^~~~
tst-reg-startend.c:48:5: error: too few arguments to function ‘fwrite’
fwrite (data[i] + bound.rm_so, 1, bound.rm_eo - bound.rm_so, stdout)
^
tst-reg-startend.c:94:9: note: in expansion of macro ‘BASEERR’
BASEERR(ać_data), fprintf (stdout, ": wanted {%d, %d}, got {%d, %d}\n",
^~~~~~~
In file included from ../include/stdio.h:14:0,
from tst-reg-startend.c:16:
../libio/stdio.h:739:15: note: declared here
extern size_t fwrite (const void *__restrict __ptr, size_t __size,
^~~~~~
tst-reg-startend.c:94:26: error: left-hand operand of comma expression has no effect [-Werror=unused-value]
BASEERR(ać_data), fprintf (stdout, ": wanted {%d, %d}, got {%d, %d}\n",
^
tst-reg-startend.c: In function ‘do_test’:
tst-reg-startend.c:112:15: error: stray ‘\304’ in program
testa�� ();
^
tst-reg-startend.c:112:16: error: stray ‘\207’ in program
testa�� ();
^
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
next prev parent reply other threads:[~2023-04-22 7:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-22 2:21 наб
2023-04-22 2:22 ` [PATCH 2/3] posix: regcomp(): clear RE_DOT_NOT_NULL наб
2023-04-22 2:23 ` [PATCH 3/3] posix: regexec(): fix REG_STARTEND, pmatch->rm_so != 0 w/^ anchor наб
2023-04-22 7:11 ` Andreas Schwab [this message]
2023-04-22 11:12 ` [PATCH v2 1/3] posix: add (failing) test for REG_STARTEND наб
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=87wn24crwj.fsf@linux-m68k.org \
--to=schwab@linux-m68k.org \
--cc=libc-alpha@sourceware.org \
--cc=nabijaczleweli@nabijaczleweli.xyz \
/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: link
Be 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).