Changeset 296


Ignore:
Timestamp:
Jun 4, 2003, 11:20:19 PM (22 years ago)
Author:
bird
Message:

k<type> - const type. Everything is C++. Don't recurse for ever in show_type().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/emxomf/stabshll.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r295 r296  
    782782static void show_type (struct type *tp)
    783783{
     784  /* precaution so we don't iterate for ever here when showing classes. */
     785  static int    fShowClass;
    784786  int i;
    785787
     
    819821    case ty_class:
    820822      printf ("{");
    821       show_type (tp->d.class.members);
     823      if (!fShowClass)
     824        {
     825          fShowClass = 1;
     826          show_type (tp->d.class.members);
     827          fShowClass = 0;
     828        }
     829      else
     830        printf ("<-!-!->");
    822831      printf ("}");
    823832      break;
     
    14341443      t.tag = ty_pointer;
    14351444      t.d.pointer = t1;
     1445      break;
     1446
     1447    case 'k':
     1448
     1449      /* A const type: k<type> */
     1450
     1451      ++parse_ptr;
     1452      if (!parse_number (&num1))
     1453          goto syntax;
     1454
     1455      result = stype_find (num1);
     1456      if (result == NULL)
     1457        {
     1458          t.tag = ty_stabs_ref;
     1459          t.d.stabs_ref = num1;
     1460        }
    14361461      break;
    14371462
     
    30993124
    31003125  /* Check whether converting a translated C++ program. */
    3101 
     3126  #if 1 /* kso #465 2003-06-04: pretend everything is C++, that symbols is no longer present. */
     3127  cplusplus_flag = 1;
     3128  #else
    31023129  cplusplus_flag = (find_symbol ("__gnu_compiled_cplusplus") != NULL);
     3130  #endif
     3131
    31033132
    31043133  /* Parse the typedefs to avoid forward references. */
Note: See TracChangeset for help on using the changeset viewer.