tree-pretty-print.c (pretty_print_string): No need to handle '\0' as a special character.

* tree-pretty-print.c (pretty_print_string): No need to handle
        '\0' as a special character.

From-SVN: r113669
This commit is contained in:
Ben Elliston 2006-05-10 01:18:28 +00:00 committed by Ben Elliston
parent 9c5835d588
commit 4db60bd06f
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2006-05-10 Ben Elliston <bje@au.ibm.com>
* tree-pretty-print.c (pretty_print_string): No need to handle
'\0' as a special character.
* tree.h: Include "hashtab.h".
(iterative_hash_expr): Use hashval_t in its prototype.
* Makefile.in (TREE_H): Add $(HASHTAB_H).

View File

@ -2512,9 +2512,7 @@ pretty_print_string (pretty_printer *buffer, const char *str)
pp_string (buffer, "\\'");
break;
case '\0':
pp_string (buffer, "\\0");
break;
/* No need to handle \0; the loop terminates on \0. */
case '\1':
pp_string (buffer, "\\1");