Change language_enum to take a const argument.
ChangeLog
2017-09-11 Tom Tromey <tom@tromey.com>
* language.h (language_enum): Make argument const.
* language.c (language_enum): Make argument const.
2017-09-11 Tom Tromey <tom@tromey.com>
+ * language.h (language_enum): Make argument const.
+ * language.c (language_enum): Make argument const.
+
+2017-09-11 Tom Tromey <tom@tromey.com>
+
* common/common-utils.h (skip_to_space): Remove macro, redeclare
as function.
(skip_to_space): Rename from skip_to_space_const.
/* Return the language enum for a given language string. */
enum language
-language_enum (char *str)
+language_enum (const char *str)
{
for (const auto &lang : languages)
if (strcmp (lang->la_name, str) == 0)
/* Misc: The string representing a particular enum language. */
-extern enum language language_enum (char *str);
+extern enum language language_enum (const char *str);
extern const struct language_defn *language_def (enum language);