typedef struct ez_array ez_array;
+#define EZ_INIT_ARRAY(a) { 0 }
+
// layout compatible with ez_blob
struct ez_array {
size_t ea_size; // valid size in bytes
ez_set_scan scan;
struct entry_type *entry;
- for (entry = ez_scan_init(set, &scan); entry; entry = ez_scan_next(&scan)) {
+ for (entry = ez_set_scan_init(set, &scan); entry; entry = ez_set_scan_next(&scan)) {
... work on entry ...
}