Changeset 721
- Timestamp:
- Sep 24, 2003, 8:32:26 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.19
to1.20
r720 r721 597 597 case ty_memfunc: uhash = (unsigned)t->d.memfunc.type; break; 598 598 case ty_baseclass: uhash = (unsigned)t->d.baseclass.type; break; 599 default:break; /* shut up warnings. */ 599 600 } 600 601 uhash += t->tag; … … 3219 3220 char *name; 3220 3221 const char *str, *p; 3221 const struct nlist *symbol , *sym2;3222 const struct nlist *symbol; 3222 3223 struct type *t1; 3223 3224 int i, n, ti, alloc_flag; … … 3239 3240 { 3240 3241 case 'G': 3242 /* Static storage, global scope */ 3243 #if 1 /* birds ugly hacking of 'G' allow this code path. */ 3244 if (where == -1) 3245 { 3246 /* I really hope this works! */ 3247 where = symbol->n_type == N_FUN ? N_TEXT : N_DATA; 3248 } 3249 if (symbol->n_value == -12357) 3250 { /* Special hack for unresolved external variables. 3251 We expect the previous two symbols to be an alias for the 3252 undefined symbol. The first of them will then have the name 3253 of this record with an $hll$ suffix. */ 3254 if ( *index >= 2 3255 && symbol[-2].n_type == (N_INDR | N_EXT) 3256 && symbol[-1].n_type == N_EXT 3257 && strstr(str_ptr + symbol[-2].n_un.n_strx, "$hll$")) 3258 { 3259 ++parse_ptr; 3260 ti = hll_type (); 3261 #if defined (HLL_DEBUG) 3262 printf (" type=%#x\n", ti); 3263 #endif 3264 sst_static (name, 0, ti, *index - 1, 1); 3265 } 3266 else 3267 { 3268 warning ("Cannot find address of external variable %s", name); 3269 return; 3270 } 3271 break; 3272 } 3273 /* fall thru */ 3274 3275 #else 3241 3276 { 3242 3277 char *psz; 3243 3278 int cch; 3244 /* Static storage, global scope */3279 const struct nlist *sym2; 3245 3280 3246 3281 ++parse_ptr; … … 3249 3284 printf (" type=%#x\n", ti); 3250 3285 #endif 3251 3252 3286 psz = alloca(cch = strlen(name) + 2); 3253 3287 *psz = '_'; … … 3265 3299 break; 3266 3300 } 3301 #endif 3267 3302 3268 3303 case 'S': -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.