Switch a job's process list from a linked list to a vector of pointers

Clarifies and simplifies the memory management around process handling.
This commit is contained in:
ridiculousfish
2017-01-23 09:28:34 -08:00
parent f4476100f2
commit ab189a75ab
7 changed files with 79 additions and 93 deletions

View File

@@ -525,7 +525,7 @@ wcstring parser_t::current_line() {
void parser_t::job_add(job_t *job) {
assert(job != NULL);
assert(job->first_process != NULL);
assert(! job->processes.empty());
this->my_job_list.push_front(job);
}