Lines Matching refs:cleanup_list
107 } cleanup_list /* = { NULL, 0, 0 } */;
215 for (i = 0; i < cleanup_list.tempdir_count; i++)
217 struct tempdir *dir = cleanup_list.tempdir_list[i];
269 for (i = 0; i < cleanup_list.tempdir_count; i++)
270 if (cleanup_list.tempdir_list[i] == NULL)
272 tmpdirp = &cleanup_list.tempdir_list[i];
278 if (cleanup_list.tempdir_count == cleanup_list.tempdir_allocated)
282 struct tempdir * volatile *old_array = cleanup_list.tempdir_list;
283 size_t old_allocated = cleanup_list.tempdir_allocated;
284 size_t new_allocated = 2 * cleanup_list.tempdir_allocated + 1;
302 cleanup_list.tempdir_list = new_array;
303 cleanup_list.tempdir_allocated = new_allocated;
310 tmpdirp = &cleanup_list.tempdir_list[cleanup_list.tempdir_count];
314 cleanup_list.tempdir_count++;
548 for (i = 0; i < cleanup_list.tempdir_count; i++)
549 if (cleanup_list.tempdir_list[i] == tmpdir)
551 /* Remove cleanup_list.tempdir_list[i]. */
552 if (i + 1 == cleanup_list.tempdir_count)
554 while (i > 0 && cleanup_list.tempdir_list[i - 1] == NULL)
556 cleanup_list.tempdir_count = i;
559 cleanup_list.tempdir_list[i] = NULL;