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/sectionarray.h

17 lines
601 B

#ifndef __SECTIONARRAY_H
#define __SECTIONARRAY_H
#include <exec/types.h>
#include <proto/containerkit.h>
#include "configmodel.h"
#define SectionArray Array
SectionArray SectionArrayNew(VOID);
VOID SectionArrayAppend(SectionArray array, CONST_STRPTR value);
VOID SectionArrayFree(SectionArray array);
SECTIONPTR* SectionArrayValues(SectionArray array);
#define SectionArrayForEach(array, block) do {SECTIONPTR *afe_123_p = (*(SECTIONPTR **)array); SECTIONPTR aSection = *afe_123_p; int afe_123_c = (((ULONG *)array)[1]);\
for (; afe_123_c--; aSection = *(++afe_123_p)) block} while (0);
#endif