/* Support for printing C and C++ types for GDB, the GNU debugger.
- Copyright 1986, 1988, 1989, 1991, 1993, 1994, 1995, 1996
+ Copyright 1986, 1988, 1989, 1991, 1993, 1994, 1995, 1996, 1998, 1999
Free Software Foundation, Inc.
This file is part of GDB.
static void
c_type_print_args PARAMS ((struct type *, GDB_FILE *));
-static void
-c_type_print_varspec_suffix PARAMS ((struct type *, GDB_FILE *, int, int, int));
-
static void
cp_type_print_derivation_info PARAMS ((GDB_FILE *, struct type *));
needed after the variable name (to describe its type).
Args work like c_type_print_varspec_prefix. */
-static void
+void
c_type_print_varspec_suffix (type, stream, show, passed_a_ptr, demangled_args)
struct type *type;
GDB_FILE *stream;
}
fprintf_filtered (stream, "enum ");
/* Print the tag name if it exists.
- * Fix for CHFts22718 (RT): The aCC compiler emits
- * a spurious "{unnamed struct}"/"{unnamed union}"/"{unnamed enum}"
- * tag for unnamed struct/union/enum's, which we don't
- * want to print.
- */
+ The aCC compiler emits a spurious
+ "{unnamed struct}"/"{unnamed union}"/"{unnamed enum}"
+ tag for unnamed struct/union/enum's, which we don't
+ want to print. */
if (TYPE_TAG_NAME (type) != NULL &&
strncmp(TYPE_TAG_NAME(type), "{unnamed", 8))
{
case TYPE_CODE_TEMPLATE:
/* Called on "ptype t" where "t" is a template.
- * Prints the template header (with args), e.g.:
- * template <class T1, class T2> class "
- * and then merges with the struct/union/class code to
- * print the rest of the definition.
- */
+ Prints the template header (with args), e.g.:
+ template <class T1, class T2> class "
+ and then merges with the struct/union/class code to
+ print the rest of the definition. */
c_type_print_cv_qualifier (type, stream, 0, 1);
fprintf_filtered (stream, "template <");
for (i = 0; i < TYPE_NTEMPLATE_ARGS(type); i++) {
}
fprintf_filtered (stream, "> class ");
/* Yuck, factor this out to a subroutine so we can call
- * it and return to the point marked with the "goback:" label... - RT
- */
+ it and return to the point marked with the "goback:" label... - RT */
goto struct_union;
go_back:
if (TYPE_NINSTANTIATIONS(type) > 0) {
+
+
+
+
+