Commit 4082292a by Alexandre Oliva Committed by Alexandre Oliva

* c-lex.c (readescape): Warn about 'x', but do not reject it.

From-SVN: r32005
parent 3ea8083f
2000-02-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* c-lex.c (readescape): Warn about '\x', but do not reject it.
2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk> 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk>
* gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
......
...@@ -942,7 +942,10 @@ readescape (ignore_ptr) ...@@ -942,7 +942,10 @@ readescape (ignore_ptr)
nonnull = 1; nonnull = 1;
} }
if (! nonnull) if (! nonnull)
error ("\\x used with no following hex digits"); {
warning ("\\x used with no following hex digits");
return 'x';
}
else if (count == 0) else if (count == 0)
/* Digits are all 0's. Ok. */ /* Digits are all 0's. Ok. */
; ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment