Update generation example.

This commit is contained in:
Patrick Pelissier committed 2017-08-06 22:38:48 +02:00
1 parent f0c03853f8
commit fb7eed3c15
1 file changed
+7 -1
+7 -1
View File
@@ -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);
}