--- np2/common/lstarray.h 2004/01/09 04:36:02 1.2 +++ np2/common/lstarray.h 2005/03/20 06:09:16 1.5 @@ -1,8 +1,4 @@ -#ifdef __cplusplus -extern "C" { -#endif - typedef struct _la { UINT maxitems; size_t listsize; @@ -10,6 +6,11 @@ typedef struct _la { struct _la *laNext; } _LISTARRAY, *LISTARRAY; + +#ifdef __cplusplus +extern "C" { +#endif + LISTARRAY listarray_new(size_t listsize, UINT maxitems); void listarray_clr(LISTARRAY laHandle); void listarray_destroy(LISTARRAY laHandle); @@ -19,7 +20,7 @@ void *listarray_append(LISTARRAY laHandl void *listarray_getitem(LISTARRAY laHandle, UINT num); UINT listarray_getpos(LISTARRAY laHandle, void *vpItem); void *listarray_enum(LISTARRAY laHandle, - BOOL (*cbProc)(void *vpItem, void *vpArg), void *vpArg); + BOOL (*cbProc)(void *vpItem, void *vpArg), void *vpArg); #ifdef __cplusplus }