HeCoding180 / cJSON_Lib

Library for building, storing and parsing JSON data structures
0 stars 0 forks source link

Allocate memory for dictionary / list container arrays when allocating new generic object #3

Closed HeCoding180 closed 3 months ago

HeCoding180 commented 3 months ago

Allocate memory for dictionary / list container arrays with a length of one generic object when allocating a new generic object to avoid freeing un-allocated memory space and simplify the functions for adding generic objects to dictionaries / lists.

HeCoding180 commented 3 months ago

Safety measures were already implemented by using null pointers for unallocated dictionaries.