linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] '\?' is a valid escape character defined by ANSI C. Its value is '?'.
@ 2007-06-05  8:02 Michael Stefaniuc
  2007-06-09  7:23 ` Josh Triplett
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Stefaniuc @ 2007-06-05  8:02 UTC (permalink / raw)
  To: linux-sparse

[-- 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 --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-09  7:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-05  8:02 [PATCH] '\?' is a valid escape character defined by ANSI C. Its value is '?' Michael Stefaniuc
2007-06-09  7:23 ` Josh Triplett

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 NNTP newsgroup(s).