diff options
Diffstat (limited to 'darray.h')
-rw-r--r-- | darray.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -8,16 +8,18 @@ #include <string.h> #include <sys/types.h> -//#include "debug.h" -//#include "mmm.h" +/* +#include "debug.h" +#include "mmm.h" +*/ #define DEFAULT_EXPAND_RATE 10 typedef struct darray { - int end; //element amount. end <= max - int max; //maximal element number - size_t size; //single element size - size_t expand; //expand size + int end; /*element amount. end <= max */ + int max; /*maximal element number */ + size_t size; /*single element size */ + size_t expand; /*expand size */ void **data; } darray; |