import gdb-19990422 snapshot
[deliverable/binutils-gdb.git] / gdb / c-typeprint.c
index 120511e17d90827431afadc80b480003b08bc397..e15550309dc0c9fc73bc895248506c4328d33901 100644 (file)
@@ -1,5 +1,5 @@
 /* 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.
@@ -44,9 +44,6 @@ extern int hp_som_som_object_present;
 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 *));
 
@@ -432,7 +429,7 @@ c_type_print_args (type, stream)
    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;
@@ -973,11 +970,10 @@ c_type_print_base (type, stream, show, level)
           }
        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))
        {
@@ -1034,11 +1030,10 @@ c_type_print_base (type, stream, show, level)
 
     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++) {
@@ -1050,8 +1045,7 @@ c_type_print_base (type, stream, show, level)
       }
       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) {
@@ -1088,3 +1082,8 @@ go_back:
 
 
 
+
+
+
+
+
This page took 0.025125 seconds and 4 git commands to generate.