equal
deleted
inserted
replaced
132 /* declare the global options variable */ |
132 /* declare the global options variable */ |
133 runtime_options_t runtime_options; |
133 runtime_options_t runtime_options; |
134 |
134 |
135 |
135 |
136 int main(int argc, char **argv) { |
136 int main(int argc, char **argv) { |
137 symbol_c *tree_root; |
137 symbol_c *tree_root, *ordered_tree_root; |
138 char * builddir = NULL; |
138 char * builddir = NULL; |
139 int optres, errflg = 0; |
139 int optres, errflg = 0; |
140 int path_len; |
140 int path_len; |
141 |
141 |
142 /* Default values for the command line options... */ |
142 /* Default values for the command line options... */ |
250 absyntax_utils_init(tree_root); |
250 absyntax_utils_init(tree_root); |
251 /* moved to bison, although it could perfectly well still be here instead of in bison code. */ |
251 /* moved to bison, although it could perfectly well still be here instead of in bison code. */ |
252 //add_en_eno_param_decl_c::add_to(tree_root); |
252 //add_en_eno_param_decl_c::add_to(tree_root); |
253 |
253 |
254 /* Do semantic verification of code */ |
254 /* Do semantic verification of code */ |
255 if (stage3(tree_root) < 0) |
255 if (stage3(tree_root, &ordered_tree_root) < 0) |
256 return EXIT_FAILURE; |
256 return EXIT_FAILURE; |
257 |
257 |
258 /* 3rd Pass */ |
258 /* 3rd Pass */ |
259 if (stage4(tree_root, builddir) < 0) |
259 if (stage4(ordered_tree_root, builddir) < 0) |
260 return EXIT_FAILURE; |
260 return EXIT_FAILURE; |
261 |
261 |
262 /* 4th Pass */ |
262 /* 4th Pass */ |
263 /* Call gcc, g++, or whatever... */ |
263 /* Call gcc, g++, or whatever... */ |
264 /* Currently implemented in the Makefile! */ |
264 /* Currently implemented in the Makefile! */ |