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.
16 lines
572 B
16 lines
572 B
#ifndef __SECTIONARRAY_H
|
|
#define __SECTIONARRAY_H
|
|
|
|
#include <exec/types.h>
|
|
#include <proto/containerkit.h>
|
|
#include "configmodel.h"
|
|
|
|
SectionArray SectionArrayNew(VOID);
|
|
VOID SectionArrayAppend(SectionArray array, SECTIONPTR 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 |