aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-08-29 13:41:25 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-08-29 13:41:25 +0000
commit5f8ded66289f6f090a2a7960241708990d3da807 (patch)
tree271055b104ee1d42602d1a5fcd62c8a6183e3e5e /gcc/tree.h
parent31029ad7e8b763f6404f794ef3af6aeefcfb6f48 (diff)
downloadgcc-5f8ded66289f6f090a2a7960241708990d3da807.zip
gcc-5f8ded66289f6f090a2a7960241708990d3da807.tar.gz
gcc-5f8ded66289f6f090a2a7960241708990d3da807.tar.bz2
tree.c (tree_code_name): Constify a char*.
* tree.c (tree_code_name): Constify a char*. * tree.h (tree_code_name, decl_printable_name): Likewise. * function.h (struct function): Likewise. * toplev.c (decl_name, decl_printable_name): Likewise. * vax/vms.h (MAYBE_VMS_FUNCTION_PROLOGUE): Likewise. * objc/objc-act.c (decl_printable_name): Remove redundant prototype. (init_objc): Remove function pointer cast. From-SVN: r28966
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 703aad0..bd9b34d 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -63,7 +63,7 @@ extern int tree_code_length[MAX_TREE_CODES];
/* Names of tree components. */
-extern char *tree_code_name[MAX_TREE_CODES];
+extern const char *tree_code_name[MAX_TREE_CODES];
/* Codes that identify the various built in functions
so that expand_call can identify them quickly. */
@@ -1928,7 +1928,7 @@ extern int all_types_permanent;
2: and any other information that might be interesting, such as function
parameter types in C++. */
-extern char *(*decl_printable_name) PROTO((tree, int));
+extern const char *(*decl_printable_name) PROTO((tree, int));
/* Pointer to function to finish handling an incomplete decl at the
end of compilation. */