-#define CURR_CDAT (*cdat_stackp)
-#define CURR_SET set_list[CURR_CDAT->num_sets]
-#define REF_IDX (num_refs % (refs_per_page * pages_per_chunk))
-#define PREV_REF (ref_buf[num_ref_chunks] + (REF_IDX * (sizeof (struct ref)) + pagesize - (sizeof (struct ref))))
-#define CURR_REF (ref_buf[num_ref_chunks] + (REF_IDX * (sizeof (struct ref)) + pagesize))
-#define ODAT_IDX (num_odats % (odats_per_page * pages_per_chunk))
-#define CURR_ODAT (odat_buf[num_odat_chunks] + (ODAT_IDX * (sizeof (struct odat)) + pagesize))
-#define VDAT_IDX (num_vdats % (vdats_per_page * pages_per_chunk))
-#define CURR_VDAT (vdat_buf[num_vdat_chunks] + (VDAT_IDX * (sizeof (struct vdat)) + pagesize))
-#define CURR_MODEL (CURR_VDAT.model_list[CURR_VDAT.num_models])
-#define CURR_LINK (link_buf[num_links])
-#define CURR_POST (post_buf[num_posts])
-#define CURR_QUAD (CURR_ODAT->quad_file)
-
-long pagesize;
-
-int pages_per_chunk = 10;
-
-int num_cdats = 0;
-int curr_max_cdats = PTRS_IN_PAGE;
-
-struct cdat* cdat_buf[PTRS_IN_PAGE];
-struct cdat* cdat_stack[PTRS_IN_PAGE];
-struct cdat** cdat_stackp;
-
-
-int num_odat_chunks = 0;
-int num_odats = 0;
-void* odat_buf[MAX_CHUNKS];
-long odats_per_page;
-