* 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:
Tom Tromey 2010-05-10 20:20:21 +00:00
parent c02866a09f
commit cc73bb8c7a
3 changed files with 28 additions and 19 deletions

View file

@ -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);