From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16297 invoked by alias); 8 Nov 2002 19:45:41 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 16257 invoked from network); 8 Nov 2002 19:45:34 -0000 Received: from unknown (HELO monkey.daikokuya.co.uk) (213.152.55.49) by sources.redhat.com with SMTP; 8 Nov 2002 19:45:34 -0000 Received: from neil by monkey.daikokuya.co.uk with local (Exim 3.36 #1 (Debian)) id 18AF4K-0000fg-00; Fri, 08 Nov 2002 19:45:28 +0000 Date: Fri, 08 Nov 2002 11:45:00 -0000 From: Neil Booth To: "Martin v. L?wis" Cc: gcc-patches@gcc.gnu.org Subject: Re: Implementing Universal Character Names in identifiers Message-ID: <20021108194528.GA2527@daikokuya.co.uk> References: <200210280715.g9S7FdI2003815@paros.informatik.hu-berlin.de> <20021107080904.GE11859@daikokuya.co.uk> <20021107091150.GA12793@daikokuya.co.uk> <20021107194030.GA17959@daikokuya.co.uk> 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-11/txt/msg00585.txt.bz2 Martin v. L?wis wrote:- > Neil Booth writes: > > > I really want this implemented in whatever patch goes in. It's not > > hard to do; instead of reading chars directly through a pointer, > > call get_effective_char() instead, like the other parts of cpplex.c do. > > It handles skipping the escaped newlines, if any. > > That is a complex change. I have to change maybe_read_ucs to use > get_effective_char. Since get_effective_char gets the position from > the reader, I have to remove the char** arguments from maybe_read_ucs. > This, in turn, means that all callers must change their calling > conventions. In particular, cpp_parse_escape cannot use the pstr/limit > approach anymore. However, I cannot see how I can change it, since > it sometimes parses things that do not come from a reader. I'll take a look; I don't think it's that hard. Neil.