Lines Matching refs:sections
50 #define DASM_POS2PTR(D, pos) (D->sections[DASM_POS2SEC(pos)].rbuf + (pos))
78 dasm_Section sections[1]; /* All sections. Alloc-extended. */ member
102 D->sections[i].buf = NULL; /* Need this for pass3. */ in dasm_init()
103 D->sections[i].rbuf = D->sections[i].buf - DASM_SEC2POS(i); in dasm_init()
104 D->sections[i].bsize = 0; in dasm_init()
105 D->sections[i].epos = 0; /* Wrong, but is recalculated after resize. */ in dasm_init()
115 if (D->sections[i].buf) in dasm_free()
116 DASM_M_FREE(Dst, D->sections[i].buf, D->sections[i].bsize); in dasm_free()
146 D->section = &D->sections[0]; in dasm_setup()
150 D->sections[i].pos = DASM_SEC2POS(i); in dasm_setup()
151 D->sections[i].ofs = 0; in dasm_setup()
208 D->section = &D->sections[n]; goto stop; in dasm_put()
306 dasm_Section *sec = D->sections + secnum; in dasm_link()
354 dasm_Section *sec = D->sections + secnum; in dasm_encode()
456 D->section != &D->sections[secmatch]) in dasm_checkstep()
457 D->status = DASM_S_MATCH_SEC|(D->section-D->sections); in dasm_checkstep()