mapper: place strings in array

mapper: place strings in a big array.
Make it possible to configure array and map extend size.
This commit is contained in:
Wim Taymans 2017-03-23 17:57:03 +01:00
parent f613240b66
commit d9a51b5d14
10 changed files with 41 additions and 25 deletions

View file

@ -53,7 +53,7 @@ pinos_split_strv (const char *str,
size_t len;
int n = 0;
pinos_array_init (&arr);
pinos_array_init (&arr, 16);
s = pinos_split_walk (str, delimiter, &len, &state);
while (s && n + 1 < max_tokens) {