case_sensitivity = current_language->case_sensitivity ();
}
-/* Set current language to (enum language) LANG. Returns previous
- language. */
+/* See language.h. */
-enum language
+void
set_language (enum language lang)
{
- enum language prev_language;
-
- prev_language = current_language->la_language;
current_language = language_def (lang);
set_range_case ();
- return prev_language;
}
\f
show_case_command,
&setlist, &showlist);
- /* In order to call SET_LANGUAGE (below) we need to make sure that
- CURRENT_LANGUAGE is not NULL. So first set the language to unknown,
- then we can change the language to 'auto'. */
- current_language = language_def (language_unknown);
-
add_set_language_command ();
/* Have the above take effect. */
extern void language_info ();
-extern enum language set_language (enum language);
-\f
+/* Set the current language to LANG. */
+
+extern void set_language (enum language lang);
/* Test a character to decide whether it can be printed in literal form
or needs to be printed in another representation. For example,