* c-lang.c (c_emit_char): Print ASCII 11 as '\v', to match
ISO C, and our parser. Print ASCII 0 as '\0', since that's what people are used to seeing.
This commit is contained in:
parent
4dd67f2918
commit
ae23c7a369
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2001-12-19 Jim Blandy <jimb@redhat.com>
|
||||||
|
|
||||||
|
* c-lang.c (c_emit_char): Print ASCII 11 as '\v', to match
|
||||||
|
ISO C, and our parser. Print ASCII 0 as '\0', since that's what
|
||||||
|
people are used to seeing.
|
||||||
|
|
||||||
2001-12-18 Jim Blandy <jimb@redhat.com>
|
2001-12-18 Jim Blandy <jimb@redhat.com>
|
||||||
|
|
||||||
* c-lang.c (c_printstr, c_builtin_types, cplus_builtin_types):
|
* c-lang.c (c_printstr, c_builtin_types, cplus_builtin_types):
|
||||||
|
|
|
@ -67,12 +67,18 @@ c_emit_char (register int c, struct ui_file *stream, int quoter)
|
||||||
case '\r':
|
case '\r':
|
||||||
fputs_filtered ("\\r", stream);
|
fputs_filtered ("\\r", stream);
|
||||||
break;
|
break;
|
||||||
|
case '\013':
|
||||||
|
fputs_filtered ("\\v", stream);
|
||||||
|
break;
|
||||||
case '\033':
|
case '\033':
|
||||||
fputs_filtered ("\\e", stream);
|
fputs_filtered ("\\e", stream);
|
||||||
break;
|
break;
|
||||||
case '\007':
|
case '\007':
|
||||||
fputs_filtered ("\\a", stream);
|
fputs_filtered ("\\a", stream);
|
||||||
break;
|
break;
|
||||||
|
case '\0':
|
||||||
|
fputs_filtered ("\\0", stream);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
fprintf_filtered (stream, "\\%.3o", (unsigned int) c);
|
fprintf_filtered (stream, "\\%.3o", (unsigned int) c);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue