Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Adam Fedor <fedor@doc.com>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] skip_quoted (updated)
Date: Mon, 18 Nov 2002 07:20:00 -0000	[thread overview]
Message-ID: <3DD90559.1070202@doc.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 163 bytes --]

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



[-- Attachment #2: newskip.patch --]
[-- Type: text/plain, Size: 1403 bytes --]

2002-11-18  Adam Fedor  <fedor@gnu.org>

        * 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);
> 

             reply	other threads:[~2002-11-18 15:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-18  7:20 Adam Fedor [this message]
2002-11-18  9:14 ` Klee Dienes
2002-11-18 18:39   ` Jim Blandy
2002-11-18 19:03     ` Adam Fedor
2002-11-20  1:12     ` Klee Dienes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DD90559.1070202@doc.com \
    --to=fedor@doc.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox