comparison src/pass2.c @ 51:04868fa52a15

Fixed context counting for second pass so local symbols work correctly
author lost
date Sun, 04 Jan 2009 20:14:54 +0000
parents 2330b88f9600
children 360d53062bb9
comparison
equal deleted inserted replaced
50:e672232caffe 51:04868fa52a15
33 lwasm_line_t *l; 33 lwasm_line_t *l;
34 34
35 debug_message(1, "Entering pass 2"); 35 debug_message(1, "Entering pass 2");
36 as -> passnum = 2; 36 as -> passnum = 2;
37 as -> addr = 0; 37 as -> addr = 0;
38 as -> context = 0;
38 39
39 // iterate over all the lines and re-parse them 40 // iterate over all the lines and re-parse them
40 for (l = as -> lineshead; l; l = l -> next) 41 for (l = as -> lineshead; l; l = l -> next)
41 lwasm_parse_line(as, l); 42 lwasm_parse_line(as, l);
42 } 43 }