Mercurial > projects > ldc
comparison gen/main.cpp @ 1587:def7a1d494fd
Merge DMD 1.051
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Fri, 06 Nov 2009 23:58:01 +0100 |
parents | 7f728c52e63c |
children | 601d3eea4a68 |
comparison
equal
deleted
inserted
replaced
1586:7f728c52e63c | 1587:def7a1d494fd |
---|---|
804 } | 804 } |
805 if (global.errors) | 805 if (global.errors) |
806 fatal(); | 806 fatal(); |
807 #endif | 807 #endif |
808 | 808 |
809 // load all unconditional imports for better symbol resolving | |
810 for (int i = 0; i < modules.dim; i++) | |
811 { | |
812 m = (Module *)modules.data[i]; | |
813 if (global.params.verbose) | |
814 printf("importall %s\n", m->toChars()); | |
815 m->importAll(0); | |
816 } | |
817 if (global.errors) | |
818 fatal(); | |
819 | |
809 // Do semantic analysis | 820 // Do semantic analysis |
810 for (int i = 0; i < modules.dim; i++) | 821 for (int i = 0; i < modules.dim; i++) |
811 { | 822 { |
812 m = (Module *)modules.data[i]; | 823 m = (Module *)modules.data[i]; |
813 if (global.params.verbose) | 824 if (global.params.verbose) |