comparison dmd/mars.c @ 849:ba390e5e9150

Remove unportable env-sanitizing code. If it is really needed, it needs to be rethought. Closes #131.
author Christian Kamm <kamm incasoftware de>
date Sun, 14 Dec 2008 16:30:06 +0100
parents bc982f1ad106
children 82ad6c0c601c
comparison
equal deleted inserted replaced
846:bc982f1ad106 849:ba390e5e9150
242 "" 242 ""
243 #endif 243 #endif
244 ); 244 );
245 } 245 }
246 246
247 int main(int argc, char *argv[], char** envp) 247 int main(int argc, char *argv[])
248 { 248 {
249 int i; 249 int i;
250 Array files; 250 Array files;
251 char *p, *ext; 251 char *p, *ext;
252 Module *m; 252 Module *m;
1208 m = (Module *)modules.data[i]; 1208 m = (Module *)modules.data[i];
1209 if (global.params.verbose) 1209 if (global.params.verbose)
1210 printf("code %s\n", m->toChars()); 1210 printf("code %s\n", m->toChars());
1211 if (global.params.obj) 1211 if (global.params.obj)
1212 { 1212 {
1213 m->genobjfile(0, envp); 1213 m->genobjfile(0);
1214 global.params.objfiles->push(m->objfile->name->str); 1214 global.params.objfiles->push(m->objfile->name->str);
1215 } 1215 }
1216 if (global.errors) 1216 if (global.errors)
1217 m->deleteObjFile(); 1217 m->deleteObjFile();
1218 else 1218 else