Mercurial > code
changeset 49:c7c6e601b154
Use enum array_type instead of int
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 07 Oct 2011 16:47:55 +0200 |
parents | cdae3689f1b6 |
children | 2901c594eaef |
files | array.h |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/array.h Fri Oct 07 16:46:31 2011 +0200 +++ b/array.h Fri Oct 07 16:47:55 2011 +0200 @@ -27,13 +27,13 @@ }; struct array { - void *data; /* array of data */ - int length; /* number of element inside */ - int type; /* array's flags (default FIXED) */ - size_t size; /* current buffer size (allocated memory) */ - size_t unit; /* unit size (sizeof the object) */ - int bsize; /* block size (used when growing array) */ - int i; /* only for ARRAY_FOREACH(_R) */ + enum array_type type; /* array's type (default FIXED) */ + void *data; /* array of data */ + int length; /* number of element inside */ + size_t size; /* current buffer size (allocated memory) */ + size_t unit; /* unit size (sizeof the object) */ + int bsize; /* block size (used when growing array) */ + int i; /* only for ARRAY_FOREACH(_R) */ }; typedef void (*array_map_fn)(void *, void *);