diff options
author | John Gilmore <gnu@cygnus> | 1992-01-31 08:50:52 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-01-31 08:50:52 +0000 |
commit | 0c6efbccaff96a6567c6deae295c6af0a26e2657 (patch) | |
tree | 0c03a22bfc79537b23faf2918ec11179f64763b8 /gdb/language.c | |
parent | 287f81eb64be5ef0e808b6022e45f15cfcb37d9c (diff) | |
download | gdb-0c6efbccaff96a6567c6deae295c6af0a26e2657.zip gdb-0c6efbccaff96a6567c6deae295c6af0a26e2657.tar.gz gdb-0c6efbccaff96a6567c6deae295c6af0a26e2657.tar.bz2 |
* language.c, language.h: Make some things const.
* expression.h, main.c: const spreads like ooze.
Diffstat (limited to 'gdb/language.c')
-rw-r--r-- | gdb/language.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/language.c b/gdb/language.c index c584d4e..81b21a9 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -47,7 +47,7 @@ extern volatile void return_to_top_level (); static void set_type_range (); /* Forward declaration */ -extern struct language_defn unknown_language_defn; +extern const struct language_defn unknown_language_defn; /* The current (default at startup) state of type and range checking. (If the modes are set to "auto", though, these are changed based @@ -61,7 +61,7 @@ enum type_check type_check = type_check_off; /* The current language and language_mode (see language.h) */ -struct language_defn *current_language = &unknown_language_defn; +const struct language_defn *current_language = &unknown_language_defn; enum language_mode language_mode = language_mode_auto; /* The list of supported languages. The list itself is malloc'd. */ |