From 64aaf40718c2f7664d6bb6de25575ca2451a59b3 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 8 Apr 2000 04:00:02 +0000 Subject: 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 --- gcc/cppexp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cppexp.c') 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 == '\\') { -- cgit v1.1