aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppexp.c
diff options
context:
space:
mode:
authorNeil Booth <neilb@earthling.net>2000-04-08 04:00:02 +0000
committerNeil Booth <neil@gcc.gnu.org>2000-04-08 04:00:02 +0000
commit64aaf40718c2f7664d6bb6de25575ca2451a59b3 (patch)
tree54f1e456f876159b92452e63265ec5cc24bf17b5 /gcc/cppexp.c
parent62828c0078f54356ccc4d81136bd2ef6c68e9b7b (diff)
downloadgcc-64aaf40718c2f7664d6bb6de25575ca2451a59b3.zip
gcc-64aaf40718c2f7664d6bb6de25575ca2451a59b3.tar.gz
gcc-64aaf40718c2f7664d6bb6de25575ca2451a59b3.tar.bz2
cppexp.c (parse_charconst): Null does not end character constants.
* cppexp.c (parse_charconst): Null does not end character constants. * cppinit.c (ISTABLE): Null character handled as whitespace. * cpplex.c (null_warning): new function. (skip_string): Emit warning if nulls encountered. (_cpp_skip_hspace): Emit warning if nulls encountered. (_cpp_lex_token): Emit warning if nulls encountered. Drop them. * cpp.texi: Update. From-SVN: r33013
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r--gcc/cppexp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c
index 50a1351..3179099 100644
--- a/gcc/cppexp.c
+++ b/gcc/cppexp.c
@@ -274,7 +274,7 @@ parse_charconst (pfile, start, end)
while (ptr < end)
{
c = *ptr++;
- if (c == '\'' || c == '\0')
+ if (c == '\'')
break;
else if (c == '\\')
{