「Dev:Source/Data Structures/Dynamic List」の版間の差分

提供: wiki
移動先: 案内検索
(Bot: Fixing redirects; cosmetic changes)
 
(1版 をインポートしました)
 
(相違点なし)

2018年6月29日 (金) 02:45時点における最新版

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