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.
15 lines
561 B
15 lines
561 B
#ifndef __STRINGARRAY_H
|
|
#define __STRINGARRAY_H
|
|
|
|
#include "types.h"
|
|
|
|
StringArray StringArrayNew(VOID);
|
|
VOID StringArrayAppend(StringArray array, CONST_STRPTR value);
|
|
VOID StringArrayAppendAndRetain(StringArray array, CONST_STRPTR value);
|
|
VOID StringArrayFree(StringArray array);
|
|
CONST_STRPTR* StringArrayValues(StringArray array);
|
|
|
|
#define StringArrayForEach(array, block) do {STRPTR *afe_123_p = (*(STRPTR **)array); STRPTR aString = *afe_123_p; int afe_123_c = (((ULONG *)array)[1]);\
|
|
for (; afe_123_c--; aString = *(++afe_123_p)) block} while (0);
|
|
|
|
#endif |