* language.c (pointer_type): Un-comment out.

* ax-gdb.c: Include language.h, use pointer_type throughout
	instead of testing TYPE_CODE_PTR.
	(gen_fetch): Include TYPE_CODE_REF.
	(gen_cast): Ditto.
This commit is contained in:
Stan Shebs 2009-12-29 23:57:59 +00:00
parent 3e1b9a8a68
commit b97aedf317
3 changed files with 24 additions and 13 deletions

View file

@ -696,6 +696,7 @@ float_type (struct type *type)
CHECK_TYPEDEF (type);
return TYPE_CODE (type) == TYPE_CODE_FLT;
}
#endif
/* Returns non-zero if the value is a pointer type */
int
@ -705,6 +706,7 @@ pointer_type (struct type *type)
TYPE_CODE (type) == TYPE_CODE_REF;
}
#if 0
/* Returns non-zero if the value is a structured type */
int
structured_type (struct type *type)