Index: edge.h =================================================================== --- edge.h (revision 17955) +++ edge.h (revision 17956) @@ -19,6 +19,7 @@ /* List */ #define LST(x) edgelist_ ## x #define LST_ITEM_T edge_ptr_t +#define LST_DONT_TYPEDEF_NODE #include "list/list.h" @@ -25,6 +26,7 @@ #ifndef LST_DONT_UNDEF #undef LST #undef LST_ITEM_T + #undef LST_DONT_TYPEDEF_NODE #endif #define EDGELIST_FOREACH(_loop_item_, _list_) do { \ Index: list/list.h =================================================================== --- list/list.h (revision 17955) +++ list/list.h (revision 17956) @@ -3,7 +3,10 @@ LST_ITEM_T item; struct LST(node_s) *next; }; + +#ifndef LST_DONT_TYPEDEF_NODE typedef struct LST(node_s) LST(node_t); +#endif LST(node_t) *LST(prepend)(LST(node_t) *list, LST_ITEM_T *item); LST(node_t) *LST(insert_after)(LST(node_t) *node, LST_ITEM_T *item); Index: point.h =================================================================== --- point.h (revision 17955) +++ point.h (revision 17956) @@ -17,7 +17,8 @@ /* List */ #define LST(x) pointlist_ ## x -#define LST_ITEM_T point_t* +#define LST_ITEM_T point_ptr_t +#define LST_DONT_TYPEDEF_NODE #include "list/list.h" @@ -24,6 +25,7 @@ #ifndef LST_DONT_UNDEF #undef LST #undef LST_ITEM_T + #undef LST_DONT_TYPEDEF_NODE #endif #define POINTLIST_FOREACH(_loop_item_, _list_) do { \ Index: triangle.h =================================================================== --- triangle.h (revision 17955) +++ triangle.h (revision 17956) @@ -18,6 +18,7 @@ /* List */ #define LST(x) trianglelist_ ## x #define LST_ITEM_T triangle_ptr_t +#define LST_DONT_TYPEDEF_NODE #include "list/list.h" @@ -24,6 +25,7 @@ #ifndef LST_DONT_UNDEF #undef LST #undef LST_ITEM_T + #undef LST_DONT_TYPEDEF_NODE #endif #define TRIANGLELIST_FOREACH(_loop_item_, _list_) do { \