diff options
author | bustico | 2008-05-19 15:31:30 +0000 |
---|---|---|
committer | bustico | 2008-05-19 15:31:30 +0000 |
commit | 09f82d4e1e6dd1672b272c314c42d5cf30c91ea8 (patch) | |
tree | a25557d3aad5edc2641f98ea434e0b676f6b6872 /src/list.h | |
parent | 7cd590600a7ff3dd8defc3d639fd3e87f1973015 (diff) | |
download | ivy-c-09f82d4e1e6dd1672b272c314c42d5cf30c91ea8.zip ivy-c-09f82d4e1e6dd1672b272c314c42d5cf30c91ea8.tar.gz ivy-c-09f82d4e1e6dd1672b272c314c42d5cf30c91ea8.tar.bz2 ivy-c-09f82d4e1e6dd1672b272c314c42d5cf30c91ea8.tar.xz |
* make the lib and api more robust by adding const where they should be
* compile with -Wall and eliminate remaining warnings
Diffstat (limited to 'src/list.h')
-rw-r--r-- | src/list.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -75,8 +75,8 @@ pour eviter de chainer un objet non initialise #define IVY_LIST_EACH( list, p ) \ for ( p = list ; p ; p = p -> next ) -#define IVY_LIST_EACH_SAFE( list, p, next )\ -for ( p = list ; (next = p ? p->next: p ),p ; p = next ) +#define IVY_LIST_EACH_SAFE( list, p, nxt )\ +for ( p = list ; (nxt = p ? p->next: p ),p ; p = nxt ) #define IVY_LIST_IS_EMPTY( list ) \ list == NULL |