summaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.h
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2009-07-02 12:44:34 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2009-07-02 12:44:34 +0000
commitf5f52e3be77cb85a8e29e5c1299dbf4c4274802e (patch)
tree2e89214da0db958f8defe9d144659d0aa8530a79 /gdb/gdbtypes.h
parent32bc8eae4d0d92efd8e26ebe5f37f6542bc66059 (diff)
downloadgdb-f5f52e3be77cb85a8e29e5c1299dbf4c4274802e.tar.gz
* gdbtypes.h (builtin_type_true_char): Remove.
(builtin_type_true_unsigned_char): Likewise. (struct builtin_type): Add builtin_true_char and builtin_true_unsigned_char members. * gdbtypes.c (builtin_type_true_char): Remove. (builtin_type_true_unsigned_char): Likewise. (_initialize_gdbtypes): Do not initialize them. (gdbtypes_post_init): Initialize builtin_true_char and builtin_true_unsigned_char members of builtin_type. * printcmd.c (print_scalar_formatted): Use builtin_type members instead of builtin_type_true_char and builtin_type_true_unsigned_char. * ada-valprint.c (ada_val_print_1): Likewise.
Diffstat (limited to 'gdb/gdbtypes.h')
-rw-r--r--gdb/gdbtypes.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index f2f339dc510..2d9ce126228 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -983,6 +983,13 @@ struct builtin_type
struct type *builtin_decdouble;
struct type *builtin_declong;
+ /* "True" character types.
+ We use these for the '/c' print format, because c_char is just a
+ one-byte integral type, which languages less laid back than C
+ will print as ... well, a one-byte integral type. */
+ struct type *builtin_true_char;
+ struct type *builtin_true_unsigned_char;
+
/* Pointer types. */
@@ -1086,14 +1093,6 @@ extern struct type *builtin_type_ia64_spill;
extern struct type *builtin_type_ia64_quad;
-/* Platform-neutral character types.
- We use these for the '/c' print format, because c_char is just a
- one-byte integral type, which languages less laid back than C
- will print as ... well, a one-byte integral type. */
-extern struct type *builtin_type_true_char;
-extern struct type *builtin_type_true_unsigned_char;
-
-
/* Maximum and minimum values of built-in types */
#define MAX_OF_TYPE(t) \