Replace uses with field::is_artificial.
Change-Id: I599616fdd9f4b6d044de492e8151aa6130725cd1
Approved-By: Tom Tromey <tom@tromey.com>
struct field arg = args[i];
/* Skip any artificial arguments. */
- if (FIELD_ARTIFICIAL (arg))
+ if (arg.is_artificial ())
continue;
if (printed_args > 0)
const struct field *field1 = &type1->field (i);
const struct field *field2 = &type2->field (i);
- if (FIELD_ARTIFICIAL (*field1) != FIELD_ARTIFICIAL (*field2)
+ if (field1->is_artificial () != field2->is_artificial ()
|| FIELD_BITSIZE (*field1) != FIELD_BITSIZE (*field2)
|| field1->loc_kind () != field2->loc_kind ())
return false;
(TYPE_CPLUS_SPECIFIC(thistype)->virtual_field_bits == NULL ? 0 \
: B_TST(TYPE_CPLUS_SPECIFIC(thistype)->virtual_field_bits, (index)))
-#define FIELD_ARTIFICIAL(thisfld) ((thisfld).is_artificial ())
#define FIELD_BITSIZE(thisfld) ((thisfld).bitsize)
-#define TYPE_FIELD_ARTIFICIAL(thistype, n) FIELD_ARTIFICIAL((thistype)->field (n))
+#define TYPE_FIELD_ARTIFICIAL(thistype, n) ((thistype)->field (n).is_artificial ())
#define TYPE_FIELD_BITSIZE(thistype, n) FIELD_BITSIZE((thistype)->field (n))
#define TYPE_FIELD_PACKED(thistype, n) (FIELD_BITSIZE((thistype)->field (n))!=0)
= tyscm_get_field_smob_arg_unsafe (self, SCM_ARG1, FUNC_NAME);
struct field *field = tyscm_field_smob_to_field (f_smob);
- return scm_from_bool (FIELD_ARTIFICIAL (*field));
+ return scm_from_bool (field->is_artificial ());
}
/* (field-baseclass? <gdb:field>) -> boolean