From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2756 invoked by alias); 18 Nov 2002 15:20:56 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 2726 invoked from network); 18 Nov 2002 15:20:53 -0000 Received: from unknown (63.119.183.65) by sources.redhat.com with QMTP; 18 Nov 2002 15:20:53 -0000 Received: (qmail 1499 invoked from network); 18 Nov 2002 15:17:16 -0000 Received: from cpe-24-221-209-215.co.sprintbbd.net (HELO doc.com) (24.221.209.215) by external1 with SMTP; 18 Nov 2002 15:17:16 -0000 Message-ID: <3DD90559.1070202@doc.com> Date: Mon, 18 Nov 2002 07:20:00 -0000 From: Adam Fedor Organization: Digital Optics Corp. User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.1) Gecko/20020905 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [PATCH] skip_quoted (updated) Content-Type: multipart/mixed; boundary="------------070300010505050904080206" X-SW-Source: 2002-11/txt/msg00456.txt.bz2 This is a multi-part message in MIME format. --------------070300010505050904080206 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 163 This is an updated patch that adds a new function, skip_quoted_chars, similar to skip_quoted. This will be used to skip past Objective-C symbols in linespec.c --------------070300010505050904080206 Content-Type: text/plain; name="newskip.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="newskip.patch" Content-length: 1403 2002-11-18 Adam Fedor * completer.c (skip_quoted_chars): New function. * completer.h: Declare it. Index: completer.c =================================================================== RCS file: /cvs/src/src/gdb/completer.c,v retrieving revision 1.11 diff -r1.11 completer.c 715a716,750 > /* Skip over a possibly quoted word (as defined by the standard quote > characters and the specified word-break characters). Returns pointer > to the location after the "word". */ > > char * > skip_quoted_chars (char *str, char *breakchars) > { > char quote_char = '\0'; > char *scan; > > for (scan = str; *scan != '\0'; scan++) > { > if (quote_char != '\0') > { > /* Ignore everything until the matching close quote char */ > if (*scan == quote_char) > { > /* Found matching close quote. */ > scan++; > break; > } > } > else if (strchr (gdb_completer_quote_characters, *scan)) > { > /* Found start of a quoted string. */ > quote_char = *scan; > } > else if (strchr (breakchars, *scan)) > { > break; > } > } > return (scan); > } > Index: completer.h =================================================================== RCS file: /cvs/src/src/gdb/completer.h,v retrieving revision 1.6 diff -r1.6 completer.h 43a44,45 > extern char *skip_quoted_chars (char *str, char *breakchars); > --------------070300010505050904080206--