}
}
-void ilist::append(void *item)
-{
- grow_list();
- items[last_item++] = item;
- num_items++;
-}
-
/*
* Put an item at a particular index
*/
void ilist::put(int index, void *item)
{
if (index > last_item) {
- last_item = index; // FIXME: On alist, last_item is pointing after the last item
+ last_item = index;
}
grow_list();
if (items[index] == NULL) {
ilist(int num = 100, bool own=true);
~ilist();
void init(int num = 100, bool own=true);
- void append(void *item);
void *get(int index);
bool empty() const;
int last_index() const { return last_item; };