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