aboutsummaryrefslogtreecommitdiff
path: root/gdb/language.h
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1995-12-01 08:08:41 +0000
committerPer Bothner <per@bothner.com>1995-12-01 08:08:41 +0000
commita366d882c09d3fb36aafca0d3f9cc7aa1aa46dfe (patch)
tree2802fc355e6f4068462d07cb309bb152fd5ea2f9 /gdb/language.h
parent5f3e7bfcbfcd9a744d69e5ed2a2a56af38bf2e35 (diff)
downloadgdb-a366d882c09d3fb36aafca0d3f9cc7aa1aa46dfe.zip
gdb-a366d882c09d3fb36aafca0d3f9cc7aa1aa46dfe.tar.gz
gdb-a366d882c09d3fb36aafca0d3f9cc7aa1aa46dfe.tar.bz2
* language.c (lang_bool_type), language.h: New function.
* language.h (LA_BOOL_TYPE): New macro. * eval.c (evaluate_subexp_standard) Use LA_BOOL_TYPE instead of builtin_type_int where appropriate, * valarith.c (value_subscript): Likewise.
Diffstat (limited to 'gdb/language.h')
-rw-r--r--gdb/language.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/language.h b/gdb/language.h
index 9542d72..cb9d709 100644
--- a/gdb/language.h
+++ b/gdb/language.h
@@ -407,6 +407,11 @@ range_error PARAMS ((char *, ...))
extern int
value_true PARAMS ((struct value *));
+extern struct type * lang_bool_type PARAMS ((void));
+
+/* The type used for Boolean values in teh current language. */
+#define LA_BOOL_TYPE lang_bool_type ()
+
/* Misc: The string representing a particular enum language. */
extern const struct language_defn *