Array type moved to include file to allow arrays of Array

This commit is contained in:
Pierre Pronchery 2005-10-22 16:07:07 +00:00
parent a21800cc11
commit 97767b45fb
2 changed files with 6 additions and 8 deletions

View File

@ -12,7 +12,12 @@
/* types */
typedef struct _Array Array;
typedef struct _Array
{
char * data;
unsigned int count;
unsigned int size;
} Array;
typedef void (*ArrayApplyFunc)(void * data, void * userdata);

View File

@ -8,13 +8,6 @@
/* Array */
struct _Array
{
char * data;
unsigned int count;
unsigned int size;
};
Array * array_new(unsigned int size)
{
Array * array;