From 79b97fa8ff1d827712174972da56d3936ef54cb7 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 22 Feb 2011 18:53:45 +0000 Subject: [PATCH] * language.c (language_class_name_from_physname): Rename 'curr_language' argument to 'lang'; use in body. --- gdb/ChangeLog | 5 +++++ gdb/language.c | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2451004a505..79fd478c59e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-02-22 Tom Tromey + + * language.c (language_class_name_from_physname): Rename + 'curr_language' argument to 'lang'; use in body. + 2011-02-22 Michael Snyder * cli/cli-utils.c (number_is_in_list): Check for zero return. diff --git a/gdb/language.c b/gdb/language.c index 2ff77f55c36..825c02d0ae9 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -1014,12 +1014,11 @@ language_demangle (const struct language_defn *current_language, /* Return class name from physname or NULL. */ char * -language_class_name_from_physname (const struct language_defn *curr_language, +language_class_name_from_physname (const struct language_defn *lang, const char *physname) { - if (current_language != NULL - && current_language->la_class_name_from_physname) - return current_language->la_class_name_from_physname (physname); + if (lang != NULL && lang->la_class_name_from_physname) + return lang->la_class_name_from_physname (physname); return NULL; } -- 2.30.2