From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Stefaniuc Subject: '$' as "valid" character in identifiers Date: Wed, 23 May 2007 23:43:54 +0200 Message-ID: <4654B59A.50302@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com ([66.187.233.31]:50505 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755560AbXEWVn4 (ORCPT ); Wed, 23 May 2007 17:43:56 -0400 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l4NLhtw9031310 for ; Wed, 23 May 2007 17:43:55 -0400 Received: from pobox.stuttgart.redhat.com (pobox.stuttgart.redhat.com [172.16.2.10]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l4NLhsFq002614 for ; Wed, 23 May 2007 17:43:55 -0400 Received: from [10.32.4.19] (vpn-4-19.str.redhat.com [10.32.4.19]) by pobox.stuttgart.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l4NLhsxr011748 for ; Wed, 23 May 2007 23:43:54 +0200 Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: Sparse Mailing-list 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