I don't know why but this seems better to me
Haldean Brown
5 years ago
259 | 259 | job->request->package_name = job->ast->package_name; |
260 | 260 | |
261 | 261 | import = job->ast->imports; |
262 | job->status = COMPILE_READY; | |
262 | 263 | while (import != NULL) |
263 | 264 | { |
265 | job->status = COMPILE_WAIT_FOR_IMPORTS; | |
264 | 266 | req = calloc(1, sizeof(struct ubik_compile_request)); |
265 | 267 | err = create_import_request( |
266 | 268 | req, cenv, import->canonical, job->request, |
277 | 279 | import = import->next; |
278 | 280 | } |
279 | 281 | |
280 | job->status = job->ast->imports == NULL | |
281 | ? COMPILE_READY | |
282 | : COMPILE_WAIT_FOR_IMPORTS; | |
282 | dprint("AST loaded for %s, new status is %d\n", | |
283 | job->request->package_name, job->status); | |
283 | 284 | return OK; |
284 | 285 | } |
285 | 286 |