* language.c (language_class_name_from_physname): Rename
authorTom Tromey <tromey@redhat.com>
Tue, 22 Feb 2011 18:53:45 +0000 (18:53 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 22 Feb 2011 18:53:45 +0000 (18:53 +0000)
'curr_language' argument to 'lang'; use in body.

gdb/ChangeLog
gdb/language.c

index 2451004a50546271f9acbb371c3433b8b9311e3d..79fd478c59e23010118364cea4d1a00526b4a506 100644 (file)
@@ -1,3 +1,8 @@
+2011-02-22  Tom Tromey  <tromey@redhat.com>
+
+       * language.c (language_class_name_from_physname): Rename
+       'curr_language' argument to 'lang'; use in body.
+
 2011-02-22  Michael Snyder  <msnyder@vmware.com>
 
        * cli/cli-utils.c (number_is_in_list): Check for zero return.
index 2ff77f55c364f16acaa212780249f2c58754d51f..825c02d0ae96d47ec265e1808cc5195dcdc6adff 100644 (file)
@@ -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;
 }