diff options
author | Paul N. Hilfinger <hilfinger@adacore.com> | 2004-12-21 10:03:55 +0000 |
---|---|---|
committer | Paul N. Hilfinger <hilfinger@adacore.com> | 2004-12-21 10:03:55 +0000 |
commit | 0b48a2912061d39173863a6824470beb73eab2ca (patch) | |
tree | 861e13636f2c82354ee06bc5f2c970892ec318b6 /gdb/ada-typeprint.c | |
parent | c3d75c30237aafd9aa332b71333b99bb78e4bb3a (diff) | |
download | fsf-binutils-gdb-0b48a2912061d39173863a6824470beb73eab2ca.zip fsf-binutils-gdb-0b48a2912061d39173863a6824470beb73eab2ca.tar.gz fsf-binutils-gdb-0b48a2912061d39173863a6824470beb73eab2ca.tar.bz2 |
* ada-lang.c (ada_print_subexp): Remove i18n markup from Ada code
output.
* ada-typeprint.c (ada_typedef_print): Ditto.
(print_unchecked_union_type): Ditto.
(print_record_type): Ditto, and correct output for non-derived
types that was inadvertently left off during the markup.
Diffstat (limited to 'gdb/ada-typeprint.c')
-rw-r--r-- | gdb/ada-typeprint.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c index 0ca44d8..39a47f9 100644 --- a/gdb/ada-typeprint.c +++ b/gdb/ada-typeprint.c @@ -125,7 +125,7 @@ ada_typedef_print (struct type *type, struct symbol *new, struct ui_file *stream) { /* XXX: type_sprint */ - fprintf_filtered (stream, _("type %.*s is "), + fprintf_filtered (stream, "type %.*s is ", ada_name_prefix_len (SYMBOL_PRINT_NAME (new)), SYMBOL_PRINT_NAME (new)); type_print (type, "", stream, 1); @@ -633,13 +633,15 @@ print_record_type (struct type *type0, struct ui_file *stream, int show, parent_type = ada_parent_type (type); if (ada_type_name (parent_type) != NULL) - fprintf_filtered (stream, _("new %s with record"), + fprintf_filtered (stream, "new %s with record", decoded_type_name (parent_type)); else if (parent_type == NULL && ada_is_tagged_type (type, 0)) - fprintf_filtered (stream, _("tagged record")); + fprintf_filtered (stream, "tagged record"); + else + fprintf_filtered (stream, "record"); if (show < 0) - fprintf_filtered (stream, _(" ... end record")); + fprintf_filtered (stream, " ... end record"); else { int flds; @@ -651,11 +653,11 @@ print_record_type (struct type *type0, struct ui_file *stream, int show, flds += print_record_field_types (type, type, stream, show, level); if (flds > 0) - fprintf_filtered (stream, _("\n%*send record"), level, ""); + fprintf_filtered (stream, "\n%*send record", level, ""); else if (flds < 0) fprintf_filtered (stream, _(" <incomplete type> end record")); else - fprintf_filtered (stream, _(" null; end record")); + fprintf_filtered (stream, " null; end record"); } } @@ -668,18 +670,18 @@ print_unchecked_union_type (struct type *type, struct ui_file *stream, int show, int level) { if (show < 0) - fprintf_filtered (stream, _("record (?) is ... end record")); + fprintf_filtered (stream, "record (?) is ... end record"); else if (TYPE_NFIELDS (type) == 0) - fprintf_filtered (stream, _("record (?) is null; end record")); + fprintf_filtered (stream, "record (?) is null; end record"); else { int i; - fprintf_filtered (stream, _("record (?) is\n%*scase ? is"), level + 4, ""); + fprintf_filtered (stream, "record (?) is\n%*scase ? is", level + 4, ""); for (i = 0; i < TYPE_NFIELDS (type); i += 1) { - fprintf_filtered (stream, _("\n%*swhen ? =>\n%*s"), level + 8, "", + fprintf_filtered (stream, "\n%*swhen ? =>\n%*s", level + 8, "", level + 12, ""); ada_print_type (TYPE_FIELD_TYPE (type, i), TYPE_FIELD_NAME (type, i), @@ -687,7 +689,7 @@ print_unchecked_union_type (struct type *type, struct ui_file *stream, fprintf_filtered (stream, ";"); } - fprintf_filtered (stream, _("\n%*send case;\n%*send record"), + fprintf_filtered (stream, "\n%*send case;\n%*send record", level + 4, "", level, ""); } } |