Create a table in an array */
| 885 | /* Create a table in an array |
| 886 | */ |
| 887 | static toml_table_t* create_table_in_array(context_t* ctx, |
| 888 | toml_array_t* parent) |
| 889 | { |
| 890 | int n = parent->nitem; |
| 891 | toml_arritem_t* base = expand_arritem(parent->item, n); |
| 892 | if (!base) { |
| 893 | e_outofmemory(ctx, FLINE); |
| 894 | return 0; |
| 895 | } |
| 896 | toml_table_t* ret = (toml_table_t*) CALLOC(1, sizeof(toml_table_t)); |
| 897 | if (!ret) { |
| 898 | e_outofmemory(ctx, FLINE); |
| 899 | return 0; |
| 900 | } |
| 901 | base[n].tab = ret; |
| 902 | parent->item = base; |
| 903 | parent->nitem++; |
| 904 | return ret; |
| 905 | } |
| 906 | |
| 907 | |
| 908 | static int skip_newlines(context_t* ctx, int isdotspecial) |
no test coverage detected