* language.c, language.h: Move saved_language out to global

expected_language.  Set expected_language when user expectation
changes.
* language.c (language_info):  Don't print type/range checking gub.
* main.c (main):  Set expected language.
(execute_command):  Check against expected language.
* symfile.c (set_initial_language):  Set expected language.
This commit is contained in:
John Gilmore
1992-10-06 09:33:15 +00:00
parent 48ab6c0e1d
commit b5af69c336
4 changed files with 104 additions and 35 deletions

View File

@@ -95,6 +95,11 @@ const struct op_print
extern const struct language_defn *current_language;
/* Pointer to the language_defn expected by the user, e.g. the language
of main(), or the language we last mentioned in a message, or C. */
extern const struct language_defn *expected_language;
/* language_mode ==
language_mode_auto: current_language automatically set upon selection
of scope (e.g. stack frame)