calculation, but if it's the mumble itself, it's just the same,
except it's presumably a constant of mumble. In any case, we need to
branch on this. "How's that for object fucking oriented? --jwz" */
- if (is_pointer_type (get_entity_type (ent))) {
+ if (is_Pointer_type (get_entity_type (ent))) {
desc = new_ent_name (ent);
- } else if (is_class_type (get_entity_type (ent))) {
+ } else if (is_Class_type (get_entity_type (ent))) {
desc = new_name (get_entity_type (ent), symconst, -1);
} else {
fprintf (stderr, "new_symconst_pto(): not handled: %s[%li] (\"%s\")\n",
if (is_type (thing)) {
type *tp = (type*) thing;
- if (is_class_type (tp)) {
+ if (is_Class_type (tp)) {
DBGPRINT (1, (stdout, "clear_type_link() (\"%s\")\n",
get_type_name (tp)));
if (mode_is_reference(get_irn_mode (node))) {
entity *ent = get_SymConst_entity (node);
type *tp = get_entity_type (ent);
- if (is_class_type (tp) || is_pointer_type (tp)) {
+ if (is_Class_type (tp) || is_Pointer_type (tp)) {
pto_t *symconst_pto = new_symconst_pto (node);
set_node_pto (node, symconst_pto);
/* 'main' has signature 'void(int, char[]*[]*)' */
assert (NULL == args [2]);
- assert (is_pointer_type (ctp));
+ assert (is_Pointer_type (ctp));
ctp = get_pointer_points_to_type (ctp); /* ctp == char[]*[] */
- assert (is_array_type (ctp));
+ assert (is_Array_type (ctp));
arg_desc = new_name (ctp, args [1], -1);
arg_pto = new_pto (args [1]);
# ifdef TEST_MAIN_TYPE
ctp = get_array_element_type (ctp); /* ctp == char[]* */
- assert (is_pointer_type (ctp));
+ assert (is_Pointer_type (ctp));
ctp = get_pointer_points_to_type (ctp); /* ctp == char[] */
- assert (is_array_type (ctp));
+ assert (is_Array_type (ctp));
ctp = get_array_element_type (ctp); /* ctp == char */
\f
/*
$Log$
+ Revision 1.14 2005/01/05 14:25:54 beck
+ renames all is_x*_type() functions to is_X*_type() to prevent name clash with EDG fronten
+
Revision 1.13 2004/12/21 15:07:55 beck
removed C99 contructs
removed unnecessary allocation
{
type *tp = get_entity_type (ent);
- if (is_primitive_type (tp) || is_pointer_type (tp)) {
+ if (is_Primitive_type (tp) || is_Pointer_type (tp)) {
/* actually, we don't get by by restricting ourselves to pointer types */
return (TRUE);
} else {
for (i = 0; i < obj_desc->n_fields; i ++) {
entity *field = obj_desc->fields [i];
- if (is_pointer_type (get_entity_type (field))) {
+ if (is_Pointer_type (get_entity_type (field))) {
const char *ent_name = get_entity_name (field);
fprintf (stream, "|<%i>%s", i, ent_name);
{
desc_t *desc = NULL;
- assert ((is_class_type (tp) || is_array_type (tp)) && "unsuitable type");
+ assert ((is_Class_type (tp) || is_Array_type (tp)) && "unsuitable type");
DBGPRINT (2, (stdout, "new_name(): new name for type \"%s\"\n",
get_type_name (tp)));
fflush (stdout);
- if (is_class_type (tp)) {
+ if (is_Class_type (tp)) {
obj_desc_t *obj_desc = NALLOC(sizeof(*obj_desc));
int i;
int n_fields;
}
desc = (desc_t*) obj_desc;
- } else if (is_array_type (tp)) {
+ } else if (is_Array_type (tp)) {
arr_desc_t *arr_desc = (arr_desc_t*) NALLOC (sizeof (arr_desc_t));
arr_desc->kind = array;
int missing = TRUE;
type *tp = get_entity_type (ent);
- assert (is_pointer_type (tp));
+ assert (is_Pointer_type (tp));
tp = get_pointer_points_to_type (tp);
- assert (is_class_type (tp));
+ assert (is_Class_type (tp));
DBGPRINT (2, (stdout, "new_ent_name(): new name for entity \"%s\"\n",
get_entity_name (ent)));
\f
/*
$Log$
+ Revision 1.11 2005/01/05 14:25:54 beck
+ renames all is_x*_type() functions to is_X*_type() to prevent name clash with EDG fronten
+
Revision 1.10 2004/12/22 14:43:14 beck
made allocations C-like
ta->res.type = tp;
ta->id = ta_id ++;
- assert (is_class_type (tp));
+ assert (is_Class_type (tp));
return (ta);
}
ta->res.type = tp;
ta->id = ta_id ++;
- assert (is_class_type (tp));
+ assert (is_Class_type (tp));
return (ta);
}
} else {
/* ugh proj arg */
type *tp = get_method_param_type (get_entity_type (meth), n);
- if (is_pointer_type (tp)) {
+ if (is_Pointer_type (tp)) {
tp = get_pointer_points_to_type (tp);
}
typalise_t *ta = NULL;
type *tp = get_Cast_type (node);
- if (is_pointer_type (tp)) {
+ if (is_Pointer_type (tp)) {
tp = get_pointer_points_to_type (tp);
}
- assert (is_class_type (tp));
+ assert (is_Class_type (tp));
ta = typalise (get_Cast_op (node));
entity *ent = get_Sel_entity (node);
type *tp = get_entity_type (ent);
- if (is_method_type (tp)) {
+ if (is_Method_type (tp)) {
tp = get_entity_type (ent);
tp = get_method_res_type (tp, 0);
- if (is_pointer_type (tp)) {
+ if (is_Pointer_type (tp)) {
tp = get_pointer_points_to_type (tp);
}
res = ta_type (tp);
- } else if (is_class_type (tp)) {
+ } else if (is_Class_type (tp)) {
tp = get_entity_type (ent);
- if (is_pointer_type (tp)) {
+ if (is_Pointer_type (tp)) {
tp = get_pointer_points_to_type (tp);
}
res = ta_type (tp);
- } else if (is_pointer_type (tp)) {
+ } else if (is_Pointer_type (tp)) {
tp = get_pointer_points_to_type (tp);
res = ta_type (tp);
} else {
entity *ent = get_SymConst_entity (node);
type *tp = get_entity_type (ent);
tp = get_pointer_points_to_type (tp);
- assert (is_class_type (tp));
+ assert (is_Class_type (tp));
res = ta_type (tp); /* can't use ta_exact */
} else {
\f
/*
$Log$
+ Revision 1.6 2005/01/05 14:25:54 beck
+ renames all is_x*_type() functions to is_X*_type() to prevent name clash with EDG fronten
+
Revision 1.5 2004/12/22 14:43:14 beck
made allocations C-like