diff options
author | Per Bothner <bothner@gcc.gnu.org> | 1995-05-19 11:19:56 -0700 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 1995-05-19 11:19:56 -0700 |
commit | a2baccf6e0d7dbebc60cf2664a86d9be668f1f10 (patch) | |
tree | a83f8c5530c0aa2d456b5796bbb62a89f99d5786 /gcc/cpplib.c | |
parent | 71f0026ffaec1d5e06e6359bad838ab3086cee8a (diff) | |
download | gcc-a2baccf6e0d7dbebc60cf2664a86d9be668f1f10.zip gcc-a2baccf6e0d7dbebc60cf2664a86d9be668f1f10.tar.gz gcc-a2baccf6e0d7dbebc60cf2664a86d9be668f1f10.tar.bz2 |
* cpplib.c (collect_expansion): Don't escape '@' inside string.
From-SVN: r9744
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 '#': |