From BlenderWiki

Jump to: navigation, search

[edit] DynamicList

For more details look at DynamicListWithAccessArray

/*========================================*/
/* Access list using realloc				  */
/*========================================*/
typedef struct DynamicArray{
  unsigned int count;
  unsigned int max_item_index;
  unsigned int last_item_index;
  void **items;
} DynamicArray;

/*========================================*/
/* Two way dynamic list with access array */
/*========================================*/
typedef struct DynamicList {
  struct DynamicArray da;
  struct ListBase lb;
} DynamicList;

Jiří Hnídek