From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11819 invoked by alias); 5 Feb 2002 11:25:31 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 11772 invoked from network); 5 Feb 2002 11:25:29 -0000 Received: from unknown (HELO anchor-post-32.mail.demon.net) (194.217.242.90) by sources.redhat.com with SMTP; 5 Feb 2002 11:25:29 -0000 Received: from mailgate.softwire.co.uk ([62.49.203.138] helo=polarbear) by anchor-post-32.mail.demon.net with esmtp (Exim 2.12 #1) id 16Y3j2-000KmT-0W; Tue, 5 Feb 2002 11:25:24 +0000 From: "Rupert Wood" To: Cc: Subject: Re: warning: unknown escape sequence '\)' Date: Tue, 05 Feb 2002 03:25:00 -0000 Message-ID: <616BE6A276E3714788D2AC35C40CD18D03AA1C@whale.softwire.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <616BE6A276E3714788D2AC35C40CD18D394BDC@whale.softwire.co.uk> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-SW-Source: 2002-02/txt/msg00043.txt.bz2 Kabir Patel wrote: > warning: unknown escape sequence '\)' Backslash is used as an escaping character for C strings; if you'd like to include a character that you wouldn't normally be able to represent in a text file then you can use an escape code for it, for example: \t tab (ASCII 9) \n newline (ASCII 10) \r carriage return (ASCII 13) \001 character with octal value 001 \xAB character with hexadecimal value AB but since backslash has been overloaded, an escape is necessary to actually embed a backslash: \\ backslash Now there is no '\)' escape defined in C; however, ')' can be escaped in sed/perl/etc. regular expressions to change its meaning. By default (I think), an unrecognised escape code will just emit the escaped character without the escaping backslash, i.e. this will be treated as ')' here. > a) What "\)\n" means? Presumably it means a short string: right close bracket, end of line (+ string terminating nul). > b) Why it isn't compiling now? It is. That was just a warning; unless you've also specified -Werror (treat warnings as errors) then this won't stop compilation. > b) If it can be validly replaced? Yes, ")\n" is probably correct. Rup.