Mercurial > projects > ddmd
comparison main.d @ 178:e3afd1303184
Many small bugs fixed
Made all classes derive from TObject to detect memory leaks (functionality is disabled for now)
Began work on overriding backend memory allocations (to avoid memory leaks)
author | korDen |
---|---|
date | Sun, 17 Oct 2010 07:42:00 +0400 |
parents | 96c0fff6897d |
children | cd48cb899aee |
comparison
equal
deleted
inserted
replaced
177:1475fd394c9e | 178:e3afd1303184 |
---|---|
491 ///} | 491 ///} |
492 else if (arg == "unittest") | 492 else if (arg == "unittest") |
493 global.params.useUnitTests = 1; | 493 global.params.useUnitTests = 1; |
494 else if (p[1] == 'I') | 494 else if (p[1] == 'I') |
495 { | 495 { |
496 if (!global.params.imppath) | |
497 global.params.imppath = new Array(); | |
498 global.params.imppath.push(cast(void*)new String(arg[(p - arg.ptr) + 2..$])); /// | 496 global.params.imppath.push(cast(void*)new String(arg[(p - arg.ptr) + 2..$])); /// |
499 } | 497 } |
500 else if (p[1] == 'J') | 498 else if (p[1] == 'J') |
501 { | 499 { |
502 if (!global.params.fileImppath) | 500 if (!global.params.fileImppath) |
975 { | 973 { |
976 error("cannot read file %s", m.srcfile.name.toChars()); | 974 error("cannot read file %s", m.srcfile.name.toChars()); |
977 } | 975 } |
978 } | 976 } |
979 | 977 |
980 //while (loop) {} | |
981 m.parse(); | 978 m.parse(); |
982 if (m.isDocFile) | 979 if (m.isDocFile) |
983 { | 980 { |
984 anydocfiles = 1; | 981 anydocfiles = 1; |
985 m.gendocfile(); | 982 m.gendocfile(); |