aboutsummaryrefslogtreecommitdiff
path: root/gdb/language.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-08-29 12:57:49 +0000
committerMark Kettenis <kettenis@gnu.org>2005-08-29 12:57:49 +0000
commit591e78ffc0230ef35359700d8b567150e0aeb33c (patch)
treeaecde1448dde313ab22663ee3cfcf712193339c5 /gdb/language.c
parentf44569944ac2b0aeeffb3758179b77537c2de8b4 (diff)
downloadgdb-591e78ffc0230ef35359700d8b567150e0aeb33c.zip
gdb-591e78ffc0230ef35359700d8b567150e0aeb33c.tar.gz
gdb-591e78ffc0230ef35359700d8b567150e0aeb33c.tar.bz2
* environ.c (unset_in_environ): Use strncmp instead of
DEPRECATED_STREQN. * exec.c (exec_file_attach): Remove DEPRECATED_HPUX_TEXT_END. * language.c (set_case_command, language_enum): Use strcmp instead of DEPRECATED_STREQ. * source.c (select_source_symtab): Sprinkle a few consts. Use strcmp instead of DEPRECATED_STREQ.
Diffstat (limited to 'gdb/language.c')
-rw-r--r--gdb/language.c48
1 files changed, 25 insertions, 23 deletions
diff --git a/gdb/language.c b/gdb/language.c
index 654f0f4..78a72f0 100644
--- a/gdb/language.c
+++ b/gdb/language.c
@@ -324,32 +324,34 @@ show_case_command (struct ui_file *file, int from_tty,
"Warning: the current case sensitivity setting does not match the language.\n");
}
-/* Set command. Change the setting for case sensitivity. */
+/* Set command. Change the setting for case sensitivity. */
+
static void
set_case_command (char *ignore, int from_tty, struct cmd_list_element *c)
{
- if (DEPRECATED_STREQ (case_sensitive, "on"))
- {
- case_sensitivity = case_sensitive_on;
- case_mode = case_mode_manual;
- }
- else if (DEPRECATED_STREQ (case_sensitive, "off"))
- {
- case_sensitivity = case_sensitive_off;
- case_mode = case_mode_manual;
- }
- else if (DEPRECATED_STREQ (case_sensitive, "auto"))
- {
- case_mode = case_mode_auto;
- set_type_range_case ();
- /* Avoid hitting the set_case_str call below. We
- did it in set_type_range_case. */
- return;
- }
+ if (strcmp (case_sensitive, "on") == 0)
+ {
+ case_sensitivity = case_sensitive_on;
+ case_mode = case_mode_manual;
+ }
+ else if (strcmp (case_sensitive, "off") == 0)
+ {
+ case_sensitivity = case_sensitive_off;
+ case_mode = case_mode_manual;
+ }
+ else if (strcmp (case_sensitive, "auto") == 0)
+ {
+ case_mode = case_mode_auto;
+ set_type_range_case ();
+ /* Avoid hitting the set_case_str call below. We did it in
+ set_type_range_case. */
+ return;
+ }
else
- {
- warning (_("Unrecognized case-sensitive setting: \"%s\""), case_sensitive);
- }
+ {
+ warning (_("Unrecognized case-sensitive setting: \"%s\""),
+ case_sensitive);
+ }
set_case_str();
show_case_command (NULL, from_tty, NULL, NULL);
}
@@ -918,7 +920,7 @@ language_enum (char *str)
int i;
for (i = 0; i < languages_size; i++)
- if (DEPRECATED_STREQ (languages[i]->la_name, str))
+ if (strcmp (languages[i]->la_name, str) == 0)
return languages[i]->la_language;
return language_unknown;