From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8525 invoked by alias); 30 Dec 2002 22:51:39 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 8515 invoked from network); 30 Dec 2002 22:51:38 -0000 Received: from unknown (HELO monkey.daikokuya.co.uk) (213.152.55.49) by 209.249.29.67 with SMTP; 30 Dec 2002 22:51:38 -0000 Received: from neil by monkey.daikokuya.co.uk with local (Exim 3.36 #1 (Debian)) id 18T8kY-0003HS-00; Mon, 30 Dec 2002 22:51:10 +0000 Date: Mon, 30 Dec 2002 20:54:00 -0000 From: Neil Booth To: Stephen Lindholm Cc: gcc@gcc.gnu.org Subject: Re: Change in preprocessor behavior Message-ID: <20021230225110.GC12512@daikokuya.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-SW-Source: 2002-12/txt/msg01607.txt.bz2 Stephen Lindholm wrote:- > thrush:~% cpp test2 > # 1 "test2" > > > struct command commands[] = > { > { #quit, quit ## _command }, > { #help, help ## _command }, > }; Contrary to your claim, I suspect you're using cpp -traditional, no? Traditional preprocessors did not support # and ##, and 3.1 is more "correct" in this respect. FWIW 3.3 has another new implementation of traditional preprocessing which is the most faithful of GCC's implementations to true traditional preprocessing. Neil.