]> Dogcows Code - chaz/tar/commit
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)
commit1fe0c83de46968700206536b626ef82d6e59076c
treedc72e272fe631fa0785a0dc8d93afd062a7568ac
parent077d7bceff9f28209972325097509d7ae775c1f0
Revamp initial name collection functions to ensure proper argument ordering.

* 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.
src/names.c
tests/Makefile.am
tests/T-cd.at [new file with mode: 0644]
tests/T-mult.at [new file with mode: 0644]
tests/T-nest.at [new file with mode: 0644]
tests/testsuite.at
This page took 0.023958 seconds and 4 git commands to generate.