dillo  3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java).
  Fossies Dox: dillo-3.0.5.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

list.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define a_List_resize(list, num_items, alloc_step)
 
#define a_List_add(list, num_items, alloc_step)   a_List_resize(list,num_items,alloc_step)
 
#define a_List_remove(list, item, num_items)
 

Macro Definition Documentation

◆ a_List_add

#define a_List_add (   list,
  num_items,
  alloc_step 
)    a_List_resize(list,num_items,alloc_step)

Definition at line 33 of file list.h.

◆ a_List_remove

#define a_List_remove (   list,
  item,
  num_items 
)
Value:
if (list && item < num_items) { \
list[item] = list[--num_items]; \
}

Definition at line 43 of file list.h.

◆ a_List_resize

#define a_List_resize (   list,
  num_items,
  alloc_step 
)
Value:
if (!list) { \
list = dMalloc(alloc_step * sizeof(*list)); \
} \
if (num_items >= alloc_step){ \
while ( num_items >= alloc_step ) \
alloc_step <<= 1; \
list = dRealloc(list, alloc_step * sizeof(*list)); \
}

Definition at line 17 of file list.h.

dRealloc
void * dRealloc(void *mem, size_t size)
Definition: dlib.c:51
dMalloc
void * dMalloc(size_t size)
Definition: dlib.c:43