Mercurial > hg > index.cgi
comparison lwasm/struct.c @ 48:1134255553bc
Fix not defining the symbol when instantiating a struct
author | lost@l-w.ca |
---|---|
date | Mon, 04 Apr 2011 22:20:38 -0600 |
parents | 1d6a31a2586b |
children | ccaecdff3fc2 |
comparison
equal
deleted
inserted
replaced
47:1d6a31a2586b | 48:1134255553bc |
---|---|
242 t = lw_strdup(l -> sym); | 242 t = lw_strdup(l -> sym); |
243 pseudo_endstruct_aux(as, l, s -> fields, t, &addr); | 243 pseudo_endstruct_aux(as, l, s -> fields, t, &addr); |
244 lw_free(t); | 244 lw_free(t); |
245 } | 245 } |
246 | 246 |
247 l -> symset = 1; | 247 if (as -> instruct) |
248 l -> symset = 1; | |
248 if (as -> instruct) | 249 if (as -> instruct) |
249 register_struct_entry(as, l, s -> size, s); | 250 register_struct_entry(as, l, s -> size, s); |
250 return 0; | 251 return 0; |
251 } | 252 } |
252 | 253 |