summaryrefslogtreecommitdiff
path: root/gdb/language.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-05-10 20:20:21 +0000
committerTom Tromey <tromey@redhat.com>2010-05-10 20:20:21 +0000
commitcc73bb8c7a49a308ae56e27a88fcb173ced0f1a5 (patch)
tree3dd4c1057a953076b5f4e9cf1fa323dab8ef4b06 /gdb/language.h
parentc02866a09f06537feac674c2a62cc605d6aa7368 (diff)
downloadbinutils-gdb-cc73bb8c7a49a308ae56e27a88fcb173ced0f1a5.tar.gz
* 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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/language.h b/gdb/language.h
index 9c6d50135f0..9306a82a204 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);