|
|
|
@ -5,6 +5,7 @@ |
|
|
|
|
#include "configmodel.h" |
|
|
|
|
|
|
|
|
|
// -----------------------------
|
|
|
|
|
#define InsertToArray(ElemType, array, pos, value) do { *((ElemType *)InsertArrayElements(array, pos, 1)) = value;} while(0); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// -----------------------------
|
|
|
|
@ -21,13 +22,22 @@ VOID LineArrayAppend(LineArray array, LINEPTR value) |
|
|
|
|
AppendToArray(LINEPTR, array, value);
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
VOID LineArrayInsert(LineArray array, LINEPTR value, ULONG pos) |
|
|
|
|
{ |
|
|
|
|
AppendToArray(LINEPTR, array, value);
|
|
|
|
|
// InsertToArray(LINEPTR, array, pos, value);
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
VOID LineArrayFree(LineArray array, BOOL freeLines) |
|
|
|
|
{ |
|
|
|
|
if( freeLines ) |
|
|
|
|
if( array != NULL ) |
|
|
|
|
{ |
|
|
|
|
ArrayForEach(LINEPTR, aLine, array, LineFree(aLine);); |
|
|
|
|
if( freeLines ) |
|
|
|
|
{ |
|
|
|
|
ArrayForEach(LINEPTR, aLine, array, LineFree(aLine);); |
|
|
|
|
} |
|
|
|
|
DeleteArray(array); |
|
|
|
|
} |
|
|
|
|
DeleteArray(array); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
LINEPTR* LineArrayValues(LineArray array) |
|
|
|
|