From 6154f4fd0e1dd413d612ef63bd30117cc9496e9c Mon Sep 17 00:00:00 2001 From: Adam Nemet Date: Wed, 25 Aug 2004 07:25:36 +0000 Subject: [PATCH] repo.c (extract_string): Reset backquote after one character. * repo.c (extract_string): Reset backquote after one character. (get_base_filename): Fix indentation. From-SVN: r86538 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/repo.c | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index faebdc08cf4..8a23b73db26 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2004-08-25 Adam Nemet + + * repo.c (extract_string): Reset backquote after one character. + (get_base_filename): Fix indentation. + 2004-08-24 Nathan Sidwell * cp/decl.c (cxx_init_decl_processing): Adjust diff --git a/gcc/cp/repo.c b/gcc/cp/repo.c index b3edf4875fc..8d2774015e1 100644 --- a/gcc/cp/repo.c +++ b/gcc/cp/repo.c @@ -68,7 +68,10 @@ extract_string (char **pp) break; ++p; if (backquote) - obstack_1grow (&temporary_obstack, c); + { + obstack_1grow (&temporary_obstack, c); + backquote = 0; + } else if (! inside && c == ' ') break; else if (! inside && c == '\\') @@ -99,7 +102,7 @@ get_base_filename (const char *filename) output = extract_string (&p); else if (strcmp (q, "-c") == 0) compiling = 1; - } + } if (compiling && output) return output; -- 2.30.2