diff options
author | jestin | 2000-01-14 14:57:14 +0000 |
---|---|---|
committer | jestin | 2000-01-14 14:57:14 +0000 |
commit | 4f77562958164548d8c64f95edb5ceaa9258e062 (patch) | |
tree | 9ce4f0b3abcb373e799dd1b7c9d94930c18d5602 /src | |
parent | 748d6faeaa7248a6b84f2f314b376b3029ed2cde (diff) | |
download | ivy-c-4f77562958164548d8c64f95edb5ceaa9258e062.zip ivy-c-4f77562958164548d8c64f95edb5ceaa9258e062.tar.gz ivy-c-4f77562958164548d8c64f95edb5ceaa9258e062.tar.bz2 ivy-c-4f77562958164548d8c64f95edb5ceaa9258e062.tar.xz |
J'enlève list.h, qui est fourni par utils-c-dev, et qui entre en conflit
avec icelui. Du coup, hop ! Dépendance.
Diffstat (limited to 'src')
-rw-r--r-- | src/list.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/list.h b/src/list.h deleted file mode 100644 index 4a6fe26..0000000 --- a/src/list.h +++ /dev/null @@ -1,55 +0,0 @@ -#define LIST_ITER( list, p, cond ) \ - p = list; \ - while ( p && (cond) ) p = p->next - -#define LIST_REMOVE( list, p ) \ - { \ - void *toRemove; \ - if ( list == p ) \ - { \ - list = p->next; \ - free(p);\ - } \ - else \ - {\ - toRemove = p;\ - LIST_ITER( list, p, ( p->next != toRemove ));\ - if ( p )\ - {\ - /* somme tricky swapping to use a untyped variable */\ - void *suiv; \ - void *prec = p;\ - p = toRemove;\ - suiv = p->next;\ - p = prec;\ - p->next = suiv;\ - free(toRemove);\ - }\ - } \ - } - -#define LIST_ADD(list, p ) \ - if ((p = malloc( sizeof( *p ))))\ - { \ - memset( p, 0 , sizeof( *p ));\ - p->next = list; \ - list = p; \ - } - -#define LIST_EACH( list, p ) \ - for ( p = list ; p ; p = p -> next ) - -#define LIST_EACH_SAFE( list, p, next )\ -for ( p = list ; (next = p ? p->next: p ),p ; p = next ) - - -#define LIST_EMPTY( list ) \ - { \ - void *p; \ - while( list ) \ - { \ - p = list;\ - list = list->next; \ - free(p);\ - } \ - } |