From: Michael Stefaniuc <mstefani@redhat.com>
To: linux-sparse@vger.kernel.org
Subject: [PATCH] '\?' is a valid escape character defined by ANSI C. Its value is '?'.
Date: Tue, 5 Jun 2007 10:02:55 +0200 [thread overview]
Message-ID: <20070605080255.GA22131@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1108 bytes --]
Signed-off-by: Michael Stefaniuc <mstefani@redhat.com>
---
tokenize.c | 2 ++
validation/escapes.c | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
create mode 100644 validation/escapes.c
diff --git a/tokenize.c b/tokenize.c
index 5474512..fbe4c5a 100644
--- a/tokenize.c
+++ b/tokenize.c
@@ -470,6 +470,8 @@ static int escapechar(int first, int type, stream_t *stream, int *valp)
break;
case '\\':
break;
+ case '?':
+ break;
case '\'':
break;
case '"':
diff --git a/validation/escapes.c b/validation/escapes.c
new file mode 100644
index 0000000..2d7d278
--- /dev/null
+++ b/validation/escapes.c
@@ -0,0 +1,3 @@
+int e[] = { '\'', '\"', '\?', '\\',
+ '\a', '\b', '\f', '\n', '\r', '\t', '\v', };
+char *s = "\'\"\?\\ \a\b\f\n\r\t\v";
--
1.5.0.6
--
Michael Stefaniuc Tel.: +49-711-96437-199
Sr. Network Engineer Fax.: +49-711-96437-111
Red Hat GmbH Email: mstefani@redhat.com
Hauptstaetterstr. 58 http://www.redhat.de/
D-70178 Stuttgart
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2007-06-05 8:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-05 8:02 Michael Stefaniuc [this message]
2007-06-09 7:23 ` [PATCH] '\?' is a valid escape character defined by ANSI C. Its value is '?' Josh Triplett
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=20070605080255.GA22131@redhat.com \
--to=mstefani@redhat.com \
--cc=linux-sparse@vger.kernel.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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.