summaryrefslogtreecommitdiff
path: root/gcc/fix-header.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-27 03:35:21 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-27 03:35:21 +0000
commit33b57a7b900686a43c4535b428313b9fe2b401df (patch)
tree519da3fd60c83da045d893a8fefdc62a8ecb1bb9 /gcc/fix-header.c
parenteeca3ba14c19824758e6cf40bc951fe6fc2fc645 (diff)
downloadgcc-33b57a7b900686a43c4535b428313b9fe2b401df.tar.gz
* collect2.c (is_ctor_dtor): Const-ify.
* m88k-protos.c (output_file_start): Likewise. * m88k.c (m88k_lang_independent_options, output_options, output_file_start): Likewise. * fix-header.c (files_to_ignore, std_include_entry, include_entry, std_include_table, main): Likewise. * protoize.c (longopts): Likewise. * regclass.c (int_reg_class_contents): Likewise. * toplev.c (dump_file, f_options, W_options): Make static. (lang_independent_options, f_options, W_options): Const-ify. * tree-dump.c (dump_file_info): Likewise. * unroll.c (_factor): Make static. java: * chartables.h: Const-ify. * gjavah.c (options): Likewise. * jcf-dump.c (options): Likewise. * jv-scan.c (options): Likewise. * lex.c (java_start_char_p, java_part_char_p): Likewise. * parse.y (binop_lookup): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48322 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r--gcc/fix-header.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index e96b6bb0fec..836e840fb82 100644
--- a/gcc/fix-header.c
+++ b/gcc/fix-header.c
@@ -104,7 +104,7 @@ int missing_extern_C_count = 0;
directory. (It might be more efficient to do directory pruning
earlier in fixproto, but this is simpler and easier to customize.) */
-static char *files_to_ignore[] = {
+static const char *const files_to_ignore[] = {
"X11/",
FIXPROTO_IGNORE_LIST
0
@@ -215,9 +215,9 @@ add_symbols (flags, names)
}
struct std_include_entry {
- const char *name;
- symbol_flags flags;
- namelist names;
+ const char *const name;
+ const symbol_flags flags;
+ const namelist names;
};
const char NONE[] = ""; /* The empty namelist. */
@@ -225,9 +225,9 @@ const char NONE[] = ""; /* The empty namelist. */
/* Special name to indicate a continuation line in std_include_table. */
const char CONTINUED[] = "";
-struct std_include_entry *include_entry;
+const struct std_include_entry *include_entry;
-struct std_include_entry std_include_table [] = {
+const struct std_include_entry std_include_table [] = {
{ "ctype.h", ANSI_SYMBOL,
"isalnum\0isalpha\0iscntrl\0isdigit\0isgraph\0islower\0\
isprint\0ispunct\0isspace\0isupper\0isxdigit\0tolower\0toupper\0" },
@@ -1102,7 +1102,7 @@ main (argc, argv)
#ifdef FIXPROTO_IGNORE_LIST
for (i = 0; files_to_ignore[i] != NULL; i++)
{
- char *ignore_name = files_to_ignore[i];
+ const char *const ignore_name = files_to_ignore[i];
int ignore_len = strlen (ignore_name);
if (strncmp (inc_filename, ignore_name, ignore_len) == 0)
{
@@ -1134,7 +1134,7 @@ main (argc, argv)
if (include_entry->name != NULL)
{
- struct std_include_entry *entry;
+ const struct std_include_entry *entry;
cur_symbol_table_size = 0;
for (entry = include_entry; ;)
{