Commit 83fa8d7a by Kaveh R. Ghazi Committed by Kaveh Ghazi

Makefile.in (gtyp-gen.h): Const-ify.

	* Makefile.in (gtyp-gen.h): Const-ify.
	* gcov-dump.c (tag_table): Likewise.

From-SVN: r60898
parent 3128dd5c
2003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (gtyp-gen.h): Const-ify.
* gcov-dump.c (tag_table): Likewise.
2003-01-04 Bruce Korb <bkorb@gnu.org> 2003-01-04 Bruce Korb <bkorb@gnu.org>
* fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
......
...@@ -1894,25 +1894,25 @@ gt-c-objc-common.h gtype-c.h gt-location.h : s-gtype ; @true ...@@ -1894,25 +1894,25 @@ gt-c-objc-common.h gtype-c.h gt-location.h : s-gtype ; @true
gtyp-gen.h: Makefile gtyp-gen.h: Makefile
echo "/* This file is machine generated. Do not edit. */" > tmp-gtyp.h echo "/* This file is machine generated. Do not edit. */" > tmp-gtyp.h
echo "static const char *srcdir = " >> tmp-gtyp.h echo "static const char *const srcdir = " >> tmp-gtyp.h
echo "\"$(GTFILES_SRCDIR)\"" >> tmp-gtyp.h echo "\"$(GTFILES_SRCDIR)\"" >> tmp-gtyp.h
echo ";" >> tmp-gtyp.h echo ";" >> tmp-gtyp.h
echo "static const char *lang_files[] = {" >> tmp-gtyp.h echo "static const char *const lang_files[] = {" >> tmp-gtyp.h
ll="$(GTFILES_FILES_FILES)"; \ ll="$(GTFILES_FILES_FILES)"; \
for f in $$ll; do \ for f in $$ll; do \
echo "\"$$f\", "; done >> tmp-gtyp.h echo "\"$$f\", "; done >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h echo "NULL};" >> tmp-gtyp.h
echo "static const char *langs_for_lang_files[] = {" >> tmp-gtyp.h echo "static const char *const langs_for_lang_files[] = {" >> tmp-gtyp.h
ff="$(GTFILES_FILES_LANGS)"; \ ff="$(GTFILES_FILES_LANGS)"; \
for f in $$ff; do \ for f in $$ff; do \
echo "\"$$f\", " ; done >> tmp-gtyp.h echo "\"$$f\", " ; done >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h echo "NULL};" >> tmp-gtyp.h
echo "static const char *all_files[] = {" >> tmp-gtyp.h echo "static const char *const all_files[] = {" >> tmp-gtyp.h
gf="$(GTFILES)"; \ gf="$(GTFILES)"; \
for f in $$gf; do \ for f in $$gf; do \
echo "\"$$f\", "; done >> tmp-gtyp.h echo "\"$$f\", "; done >> tmp-gtyp.h
echo " NULL};" >> tmp-gtyp.h echo " NULL};" >> tmp-gtyp.h
echo "static const char *lang_dir_names[] = { \"c\", " >> tmp-gtyp.h echo "static const char *const lang_dir_names[] = { \"c\", " >> tmp-gtyp.h
gf="$(GTFILES_LANG_DIR_NAMES)"; \ gf="$(GTFILES_LANG_DIR_NAMES)"; \
for l in $$gf; do \ for l in $$gf; do \
echo "\"$$l\", "; done >> tmp-gtyp.h echo "\"$$l\", "; done >> tmp-gtyp.h
......
...@@ -54,7 +54,7 @@ static const struct option options[] = ...@@ -54,7 +54,7 @@ static const struct option options[] =
{ "long", no_argument, NULL, 'l' }, { "long", no_argument, NULL, 'l' },
}; };
static tag_format_t tag_table[] = static const tag_format_t tag_table[] =
{ {
{0, "NOP", NULL}, {0, "NOP", NULL},
{0, "UNKNOWN", NULL}, {0, "UNKNOWN", NULL},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment