gdb: remove TYPE_CODE macro
[deliverable/binutils-gdb.git] / gdb / cli / cli-utils.c
index 7d152a90f897b39891dad22ed81c8c603cddf116..710fd520a5c25ca72456f10052246d8c05b23648 100644 (file)
@@ -37,7 +37,7 @@ get_ulongest (const char **pp, int trailer)
 
       if (val != NULL) /* Value history reference */
        {
-         if (TYPE_CODE (value_type (val)) == TYPE_CODE_INT)
+         if (value_type (val)->code () == TYPE_CODE_INT)
            retval = value_as_long (val);
          else
            error (_("History value must have integer type."));
@@ -96,7 +96,7 @@ get_number_trailer (const char **pp, int trailer)
 
       if (val) /* Value history reference */
        {
-         if (TYPE_CODE (value_type (val)) == TYPE_CODE_INT)
+         if (value_type (val)->code () == TYPE_CODE_INT)
            retval = value_as_long (val);
          else
            {
This page took 0.024887 seconds and 4 git commands to generate.