diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2000-03-06 18:03:55 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2000-03-06 18:03:55 +0000 |
commit | fd05eb8097447db2163a7900a2db30be7aaf9851 (patch) | |
tree | 7fa5d8f5f3c3151a83a03d4b9ff54f281c145164 /gcc/tree.h | |
parent | c137830fba1ab6f1ae91ad5aec71573af7023c9d (diff) | |
download | gcc-fd05eb8097447db2163a7900a2db30be7aaf9851.zip gcc-fd05eb8097447db2163a7900a2db30be7aaf9851.tar.gz gcc-fd05eb8097447db2163a7900a2db30be7aaf9851.tar.bz2 |
builtins.c (built_in_class_names, [...]): Constify a char*.
* builtins.c (built_in_class_names, built_in_names): Constify a
char*.
* gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
int.
(_mcleanup): Ensure value matches format specifier in sprintf.
* cpphash.c (special_symbol): Don't needlessly cast away
const-ness.
* cppinit.c (base_name): Delete unused prototype.
* mkdeps.c (deps_init): Make definition K&R safe.
* tree.h (built_in_class_names, built_in_names): Constify a
char*.
f:
* ansify.c (die_unless): Don't use ANSI string concatenation.
(die): Mark with ATTRIBUTE_NORETURN.
From-SVN: r32364
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -78,7 +78,7 @@ enum built_in_class }; /* Names for the above. */ -extern char *built_in_class_names[4]; +extern const char *const built_in_class_names[4]; /* Codes that identify the various built in functions so that expand_call can identify them quickly. */ @@ -155,7 +155,7 @@ enum built_in_function }; /* Names for the above. */ -extern char *built_in_names[(int) END_BUILTINS]; +extern const char *const built_in_names[(int) END_BUILTINS]; /* The definition of tree nodes fills the next several pages. */ |