summaryrefslogtreecommitdiffstats
path: root/tests/002/proc
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2025-01-29 20:37:39 -0800
committerKaz Kylheku <kaz@kylheku.com>2025-01-29 20:37:39 -0800
commit707ab6c2626575cd090a2ba02db17306a25d49ed (patch)
treebe8ad6e1ccbbf3f89951af0591fadb648327060e /tests/002/proc
parentd4334dcf457b789520c87a04f1476cc49ce5adaf (diff)
downloadtxr-707ab6c2626575cd090a2ba02db17306a25d49ed.tar.gz
txr-707ab6c2626575cd090a2ba02db17306a25d49ed.tar.bz2
txr-707ab6c2626575cd090a2ba02db17306a25d49ed.zip
vector: ensure minimum alloc size.
Like in a recent commit for mkstring, we impose a minimum allocation size of 6 for vectors, which means 8 cells together with the two informaton words at the base of the vector. * lib.c (vec_own): Take an alloc parameter in addition to the length, which is stored in v[vec_alloc]. (vector): Impose a minimum alloc size of 6. (copy_vec, nested_vec_of_v): Pass alloc parameter to vec_own which is the same as the length parameter; i.e. no behavior change for these functions.
Diffstat (limited to 'tests/002/proc')
0 files changed, 0 insertions, 0 deletions