From a2baccf6e0d7dbebc60cf2664a86d9be668f1f10 Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Fri, 19 May 1995 11:19:56 -0700 Subject: [PATCH] * cpplib.c (collect_expansion): Don't escape '@' inside string. From-SVN: r9744 --- gcc/cpplib.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 6517deb..989c64d 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -1310,7 +1310,10 @@ collect_expansion (pfile, buf, limit, nargs, arglist) break; case '@': - *exp_p++ = c; + /* An '@' in a string or character constant stands for itself, + and does not need to be escaped. */ + if (!expected_delimiter) + *exp_p++ = c; break; case '#': -- 2.7.4