Dev:Source/Data Structures/Dynamic List

提供: wiki
移動先: 案内検索

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