]> gcc.gnu.org Git - gcc.git/commitdiff
* cpplib.c (collect_expansion): Don't escape '@' inside string.
authorPer Bothner <bothner@gcc.gnu.org>
Fri, 19 May 1995 18:19:56 +0000 (11:19 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Fri, 19 May 1995 18:19:56 +0000 (11:19 -0700)
From-SVN: r9744

gcc/cpplib.c

index 6517deb384c24563e03af3d3a394be70bd3e757a..989c64d6a233dadd50b44c8775d07a255ce4be4a 100644 (file)
@@ -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 '#':
This page took 0.073684 seconds and 5 git commands to generate.