You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
configreader/containers/linearray.c

43 lines
704 B

1 year ago
#include <exec/types.h>
#include <proto/exec.h>
#include <proto/containerkit.h>
#include "linearray.h"
// -----------------------------
// -----------------------------
LineArray LineArrayNew(VOID)
{
#define SIZE_APTR 2
return NewArray(SIZE_APTR);
1 year ago
}
VOID LineArrayAppend(LineArray array, LINEPTR value)
{
AppendToArray(LINEPTR, array, value);
}
1 year ago
VOID LineArrayFree(LineArray array, BOOL freeLines)
1 year ago
{
1 year ago
if( freeLines )
{
ArrayForEach(LINEPTR, aLine, array, LineFree(aLine););
}
1 year ago
DeleteArray(array);
}
LINEPTR* LineArrayValues(LineArray array)
{
return ArrayValues(LINEPTR, array);
}
// -----------------------------------------------
// -----------------------------------------------