]> Dogcows Code - chaz/tar/commitdiff
Revamp initial name collection functions to ensure proper argument ordering.
authorSergey Poznyakoff <gray@gnu.org.ua>
Fri, 16 Aug 2013 19:54:40 +0000 (22:54 +0300)
committerSergey Poznyakoff <gray@gnu.org.ua>
Fri, 16 Aug 2013 20:03:35 +0000 (23:03 +0300)
* src/names.c (NELT_NOOP): New constant
(name_elt) <next,prev>: New members.
(name_array,allocated_entries,entries,scanned): Remove.
(check_name_alloc): Remove function.
(name_elt_alloc): New static.
(name_list_adjust,name_list_advance): New functions.
(name_add_name,name_add_dir)
(name_add_file): Use new allocation functions.
(read_next_name): Advance list head pointer as necessary
before returning.
(name_next_elt): Read elements from list.
* tests/T-cd.at: New file.
* tests/T-mult.at: New file.
* tests/T-nest.at: New file.
* tests/Makefile.am: Add new testcases.
* tests/testsuite.at: Likewise.


No differences found
This page took 0.027138 seconds and 4 git commands to generate.