comparison lwasm/section.c @ 363:d96c30e60ddf

Added pass2 and various supporting logic including symbol lookups
author lost@starbug
date Tue, 06 Apr 2010 21:03:19 -0600
parents 7166254491ed
children 34dfc9747f23
comparison
equal deleted inserted replaced
362:4867f18c872f 363:d96c30e60ddf
200 // add the symbol to the "export" list (which will be resolved 200 // add the symbol to the "export" list (which will be resolved
201 // after the parse pass is complete 201 // after the parse pass is complete
202 e = lw_alloc(sizeof(exportlist_t)); 202 e = lw_alloc(sizeof(exportlist_t));
203 e -> next = as -> exportlist; 203 e -> next = as -> exportlist;
204 e -> symbol = lw_strdup(sym); 204 e -> symbol = lw_strdup(sym);
205 e -> line = l;
205 as -> exportlist = e; 206 as -> exportlist = e;
206 lw_free(sym); 207 lw_free(sym);
207 208
208 if (after && **p == ',') 209 if (after && **p == ',')
209 { 210 {