ada-lang.c: Rename gnat_encoded_fixed_type_info
authorJoel Brobecker <brobecker@adacore.com>
Sun, 1 Nov 2020 07:41:06 +0000 (02:41 -0500)
committerJoel Brobecker <brobecker@adacore.com>
Sun, 1 Nov 2020 08:46:10 +0000 (03:46 -0500)
This commit renames gnat_encoded_fixed_type_info into
gnat_encoded_fixed_point_type_info, so as to be more consistent
with the naming used for the other associated routines (i.e.
use "fixed_point" rather than just "fixed").

gdb/ChangeLog:

        * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
        gnat_encoded_fixed_type_info.  Update all callers.

gdb/ChangeLog
gdb/ada-lang.c

index 4654c208f7993ac0da760dc9760c1d94a57b3c85..5ec5d2512150044c3979a45d293ef3e498cbf394 100644 (file)
@@ -1,3 +1,8 @@
+2020-11-01  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
+       gnat_encoded_fixed_type_info.  Update all callers.
+
 2020-11-01  Joel Brobecker  <brobecker@adacore.com>
 
        * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
index e94dd8cadbe868e652c717c30c5e7b6b15804f9c..930a5146c048b6f7125bc72acbe8ec23d7d91ba6 100644 (file)
@@ -11120,7 +11120,7 @@ nosideret:
    Otherwise, return NULL.  */
 
 static const char *
-gnat_encoded_fixed_type_info (struct type *type)
+gnat_encoded_fixed_point_type_info (struct type *type)
 {
   const char *name = ada_type_name (type);
   enum type_code code = (type == NULL) ? TYPE_CODE_UNDEF : type->code ();
@@ -11135,7 +11135,7 @@ gnat_encoded_fixed_type_info (struct type *type)
         return tail + 5;
     }
   else if (code == TYPE_CODE_RANGE && TYPE_TARGET_TYPE (type) != type)
-    return gnat_encoded_fixed_type_info (TYPE_TARGET_TYPE (type));
+    return gnat_encoded_fixed_point_type_info (TYPE_TARGET_TYPE (type));
   else
     return NULL;
 }
@@ -11145,7 +11145,7 @@ gnat_encoded_fixed_type_info (struct type *type)
 int
 ada_is_gnat_encoded_fixed_point_type (struct type *type)
 {
-  return gnat_encoded_fixed_type_info (type) != NULL;
+  return gnat_encoded_fixed_point_type_info (type) != NULL;
 }
 
 /* Return non-zero iff TYPE represents a System.Address type.  */
@@ -11173,7 +11173,7 @@ ada_scaling_type (struct type *type)
 struct value *
 gnat_encoded_fixed_point_delta (struct type *type)
 {
-  const char *encoding = gnat_encoded_fixed_type_info (type);
+  const char *encoding = gnat_encoded_fixed_point_type_info (type);
   struct type *scale_type = ada_scaling_type (type);
 
   long long num, den;
@@ -11191,7 +11191,7 @@ gnat_encoded_fixed_point_delta (struct type *type)
 struct value *
 gnat_encoded_fixed_point_scaling_factor (struct type *type)
 {
-  const char *encoding = gnat_encoded_fixed_type_info (type);
+  const char *encoding = gnat_encoded_fixed_point_type_info (type);
   struct type *scale_type = ada_scaling_type (type);
 
   long long num0, den0, num1, den1;
This page took 0.039842 seconds and 4 git commands to generate.