Lines Matching refs:sections
48 #define DASM_POS2PTR(D, pos) (D->sections[DASM_POS2SEC(pos)].rbuf + (pos))
76 dasm_Section sections[1]; /* All sections. Alloc-extended. */ member
103 D->sections[i].buf = NULL; /* Need this for pass3. */ in dasm_init()
104 D->sections[i].rbuf = DASM_PTR_SUB(D->sections[i].buf, DASM_SEC2POS(i)); in dasm_init()
105 D->sections[i].bsize = 0; in dasm_init()
106 D->sections[i].epos = 0; /* Wrong, but is recalculated after resize. */ in dasm_init()
116 if (D->sections[i].buf) in dasm_free()
117 DASM_M_FREE(Dst, D->sections[i].buf, D->sections[i].bsize); in dasm_free()
154 D->section = &D->sections[0]; in dasm_setup()
158 D->sections[i].pos = DASM_SEC2POS(i); in dasm_setup()
159 D->sections[i].ofs = 0; in dasm_setup()
274 n = *p; CK(n < D->maxsection, RANGE_SEC); D->section = &D->sections[n]; in dasm_put()
314 dasm_Section *sec = D->sections + secnum; in dasm_link()
336 lofs += D->sections[i].ofs; in dasm_link()
410 dasm_Section *sec = D->sections + secnum; in dasm_encode()
535 D->section != &D->sections[secmatch]) in dasm_checkstep()
536 D->status = DASM_S_MATCH_SEC|(int)(D->section-D->sections); in dasm_checkstep()