From 2f2c677e670063360cbb3fb1b32bd6cf36bcf03a Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Thu, 24 Feb 2022 16:42:22 -0800 Subject: Move find_toplevel_char to cp-support.[ch] find_toplevel_char is being used more and more outside of linespec.c, so this patch moves it into cp-support.[ch]. --- gdb/linespec.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'gdb/linespec.h') diff --git a/gdb/linespec.h b/gdb/linespec.h index bf9b040..bb89755 100644 --- a/gdb/linespec.h +++ b/gdb/linespec.h @@ -162,13 +162,6 @@ extern const char *get_gdb_linespec_parser_quote_characters (void); extern int is_ada_operator (const char *string); -/* Find an instance of the character C in the string S that is outside - of all parenthesis pairs, single-quoted strings, and double-quoted - strings. Also, ignore the char within a template name, like a ',' - within foo. */ - -extern const char *find_toplevel_char (const char *s, char c); - /* Find the end of the (first) linespec pointed to by *STRINGP. STRINGP will be advanced to this point. */ -- cgit v1.1