diff options
author | Tom Tromey <tromey@redhat.com> | 2010-05-10 20:20:21 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-05-10 20:20:21 +0000 |
commit | cc73bb8c7a49a308ae56e27a88fcb173ced0f1a5 (patch) | |
tree | 3dd4c1057a953076b5f4e9cf1fa323dab8ef4b06 /gdb/language.h | |
parent | c02866a09f06537feac674c2a62cc605d6aa7368 (diff) | |
download | gdb-cc73bb8c7a49a308ae56e27a88fcb173ced0f1a5.zip gdb-cc73bb8c7a49a308ae56e27a88fcb173ced0f1a5.tar.gz gdb-cc73bb8c7a49a308ae56e27a88fcb173ced0f1a5.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/language.h')
-rw-r--r-- | gdb/language.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/language.h b/gdb/language.h index 9c6d501..9306a82 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -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); |