|
|
|
@ -5,6 +5,7 @@ |
|
|
|
|
#include "configmodel.h" |
|
|
|
|
|
|
|
|
|
// -----------------------------
|
|
|
|
|
#define InsertToArray(ElemType, array, pos, value) do { *((ElemType *)InsertArrayElements(array, pos, 1)) = value;} while(0); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// -----------------------------
|
|
|
|
@ -21,7 +22,15 @@ 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( array != NULL ) |
|
|
|
|
{ |
|
|
|
|
if( freeLines ) |
|
|
|
|
{ |
|
|
|
@ -29,6 +38,7 @@ VOID LineArrayFree(LineArray array, BOOL freeLines) |
|
|
|
|
} |
|
|
|
|
DeleteArray(array); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
LINEPTR* LineArrayValues(LineArray array) |
|
|
|
|
{ |
|
|
|
|