… | |
… | |
964 | memset ((void *)(base), 0, sizeof (*(base)) * (count)) |
964 | memset ((void *)(base), 0, sizeof (*(base)) * (count)) |
965 | |
965 | |
966 | #define array_needsize(type,base,cur,cnt,init) \ |
966 | #define array_needsize(type,base,cur,cnt,init) \ |
967 | if (expect_false ((cnt) > (cur))) \ |
967 | if (expect_false ((cnt) > (cur))) \ |
968 | { \ |
968 | { \ |
969 | int ocur_ = (cur); \ |
969 | int ecb_unused ocur_ = (cur); \ |
970 | (base) = (type *)array_realloc \ |
970 | (base) = (type *)array_realloc \ |
971 | (sizeof (type), (base), &(cur), (cnt)); \ |
971 | (sizeof (type), (base), &(cur), (cnt)); \ |
972 | init ((base) + (ocur_), (cur) - ocur_); \ |
972 | init ((base) + (ocur_), (cur) - ocur_); \ |
973 | } |
973 | } |
974 | |
974 | |