* eval.c (ptrmath_type_p): Add 'lang' argument.
(evaluate_subexp_standard): Update. (evaluate_subexp_with_coercion): Update. * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
This commit is contained in:
parent
c02866a09f
commit
cc73bb8c7a
3 changed files with 28 additions and 19 deletions
|
@ -381,9 +381,9 @@ struct type *language_lookup_primitive_type_by_name (const struct language_defn
|
|||
|
||||
/* "cast" really means conversion */
|
||||
/* FIXME -- should be a setting in language_defn */
|
||||
#define CAST_IS_CONVERSION (current_language->la_language == language_c || \
|
||||
current_language->la_language == language_cplus || \
|
||||
current_language->la_language == language_objc)
|
||||
#define CAST_IS_CONVERSION(LANG) ((LANG)->la_language == language_c || \
|
||||
(LANG)->la_language == language_cplus || \
|
||||
(LANG)->la_language == language_objc)
|
||||
|
||||
extern void language_info (int);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue