From fb7eed3c15f6fbce20929177ac388143dae38c25 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sun, 6 Aug 2017 22:38:48 +0200 Subject: [PATCH] Update generation example. --- tests/tgen-marray.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/tgen-marray.c b/tests/tgen-marray.c index c6cd7a8f..5111ebfc 100644 --- a/tests/tgen-marray.c +++ b/tests/tgen-marray.c @@ -23,10 +23,11 @@ #include "m-array.h" -ARRAY_DEF(uint, unsigned int) +ARRAY_DEF(array_uint, unsigned int) unsigned int add_two(const array_uint_t tab, size_t i, size_t j); void size_to_exactly(array_uint_t tab, size_t n); +void push_back (array_uint_t tab, unsigned int n); unsigned int add_two(const array_uint_t tab, size_t i, size_t j) { @@ -38,3 +39,8 @@ void size_to_exactly(array_uint_t tab, size_t n) array_uint_resize(tab, 0); array_uint_resize(tab, n); } + +void push_back (array_uint_t tab, unsigned int n) +{ + array_uint_push_back(tab, n); +}