Changeset 937
- Timestamp:
- Jan 7, 2004, 5:37:15 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/emxomf/stabshll.c
-
Property cvs2svn:cvs-rev
changed from
1.28
to1.29
r936 r937 62 62 #define SST_changseg 0x11 /* Change default segment */ 63 63 #define SST_tag 0x16 /* Structure, union, enum tags */ 64 #define SST_ class 0x19 /* C++ class*/64 #define SST_tag2 0x19 /* Extended tag for long names (C++ class). */ 65 65 #define SST_memfunc 0x1a /* C++ member function */ 66 66 #define SST_CPPproc 0x1d /* C++ function */ … … 3712 3712 3713 3713 /* Create a type tag for HLL type index INDEX. TYPE is either SST_tag 3714 (for structures and unions) or SST_ class(for classes). NAME is3714 (for structures and unions) or SST_tag2 (for classes). NAME is 3715 3715 the name of the structure, union or class. */ 3716 3716 … … 3718 3718 { 3719 3719 if (name != NULL) 3720 { /* kso #456 2003-06-11: Templates can make very long names. 3721 Clip them and let the debugger burn on them if it doesn't like it. */ 3722 char achName[256]; 3723 int cch = strlen(name); 3724 if (cch > 250) 3725 { 3726 warning ("type_tag: name is longer than 250 bytes (%d).", cch); 3727 cch = 250; 3728 } 3729 memcpy (achName, name, cch); 3730 achName[cch] = '\0'; 3731 3720 { 3732 3721 sst_start (type); 3733 3722 buffer_word (&sst, index); 3734 if (type == SST_ class)3735 buffer_enc (&sst, achName);3723 if (type == SST_tag2) 3724 buffer_enc (&sst, name); 3736 3725 else 3737 buffer_nstr (&sst, achName); 3738 sst_end (); 3726 { 3727 char achName[256]; 3728 int cch = strlen(name); 3729 if (cch > 250) 3730 { 3731 warning ("type_tag: name is longer than 250 bytes (%d).", cch); 3732 cch = 250; 3733 } 3734 memcpy (achName, name, cch); 3735 achName[cch] = '\0'; 3736 3737 buffer_nstr (&sst, achName); 3738 } 3739 sst_end (); 3739 3740 } 3740 3741 } … … 3926 3927 break; 3927 3928 case ty_class: 3928 type_tag (SST_ class, t1->index, t1->d.class.name);3929 type_tag (SST_tag2, t1->index, t1->d.class.name); 3929 3930 break; 3930 3931 case ty_enu: -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.