comparison dmd2/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 8e6135be6999
children 5f5e6eb790e7
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;
1232 m = (Module *)modules.data[i]; 1232 m = (Module *)modules.data[i];
1233 if (global.params.verbose) 1233 if (global.params.verbose)
1234 printf("code %s\n", m->toChars()); 1234 printf("code %s\n", m->toChars());
1235 if (global.params.obj) 1235 if (global.params.obj)
1236 { 1236 {
1237 m->genobjfile(0, envp); 1237 m->genobjfile(0);
1238 global.params.objfiles->push(m->objfile->name->str); 1238 global.params.objfiles->push(m->objfile->name->str);
1239 } 1239 }
1240 if (global.errors) 1240 if (global.errors)
1241 m->deleteObjFile(); 1241 m->deleteObjFile();
1242 else 1242 else