From: Michael Stefaniuc <mstefani@redhat.com>
To: Sparse Mailing-list <linux-sparse@vger.kernel.org>
Subject: '$' as "valid" character in identifiers
Date: Wed, 23 May 2007 23:43:54 +0200 [thread overview]
Message-ID: <4654B59A.50302@redhat.com> (raw)
echo 'int dollar$ = 1;' > /tmp/dollar.c
gcc -c -Wall -Wextra -o /tmp/dollar.o /tmp/dollar.c
echo $?
0
No comment ...
I didn't find '$' as valid identifier character in "The C Programming
Language (ANSI C)" nor does http://c0x.coding-guidelines.com/5.2.1.html
allow it as valid char in the "source character set".
I found it because sparse tripped over that in the Wine source code.
Yes, i already sent a patch to fix that in Wine.
Not sure if sparse should change its behavior here;
cgcc -c -Wall -Wextra -o /tmp/dollar.o /tmp/dollar.c
/tmp/dollar.c:1:11: error: Expected ; at end of declaration
/tmp/dollar.c:1:11: error: got $
is a adequate response.
bye
michael
--
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
next reply other threads:[~2007-05-23 21:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-23 21:43 Michael Stefaniuc [this message]
2007-05-23 22:00 ` '$' as "valid" character in identifiers Michael Stefaniuc
2007-05-23 22:10 ` Linus Torvalds
2007-05-24 10:04 ` Al Viro
2007-05-24 11:14 ` Derek M Jones
2007-05-24 12:35 ` Al Viro
2007-05-24 13:18 ` Derek M Jones
2007-05-24 14:10 ` Al Viro
2007-05-24 14:43 ` Derek M Jones
2007-05-24 14:50 ` Michael Stefaniuc
2007-05-24 14:26 ` Neil Booth
2007-05-24 14:35 ` Neil Booth
2007-05-24 14:36 ` Neil Booth
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=4654B59A.50302@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.