15 # if defined( __FLAT__) || defined(__LARGE__) 36 struct gapbuf*
const o_gap);
40 struct gapbuf*
const io_gap);
44 struct gapbuf*
const io_gap,
45 size_t const i_offset);
49 struct gapbuf*
const io_gap,
50 size_t const i_offset,
51 unsigned char const i_char);
55 struct gapbuf*
const io_gap,
56 size_t const i_offset);
58 extern unsigned char __FAR*
61 struct gapbuf const*
const i_gap);
63 extern unsigned char __FAR*
66 struct gapbuf const*
const i_gap);
68 extern unsigned char __FAR*
71 struct gapbuf const*
const i_gap);
73 extern unsigned char __FAR*
76 struct gapbuf const*
const i_gap);
80 struct gapbuf*
const io_gap,
81 size_t const i_offset,
82 unsigned char const i_char);
84 extern unsigned char const __FAR*
86 struct gapbuf *
const io_gap);
88 extern unsigned char __FAR*
90 struct gapbuf const*
const i_gap,
91 size_t const i_offset);
unsigned char __FAR * gapbuf_ptr(struct gapbuf const *const i_gap, size_t const i_offset)
get the text buffer
Definition: gapbuf.c:436
void gapbuf_discharge(struct gapbuf *const io_gap)
release resources held by object
Definition: gapbuf.c:71
size_t m_start
Definition: gapbuf.h:26
int gapbuf_insert(struct gapbuf *const io_gap, size_t const i_offset, unsigned char const i_char)
insert a character
Definition: gapbuf.c:207
unsigned char __FAR * gapbuf_line_next(size_t *io_offset, struct gapbuf const *const i_gap)
move to next line
Definition: gapbuf.c:300
unsigned char __FAR * m_block
Definition: gapbuf.h:24
size_t m_end
Definition: gapbuf.h:27
unsigned char __FAR * gapbuf_char_next(size_t *io_offset, struct gapbuf const *const i_gap)
move to next character
Definition: gapbuf.c:265
int gapbuf_overwrite(struct gapbuf *const io_gap, size_t const i_offset, unsigned char const i_char)
overwrite character
Definition: gapbuf.c:357
int gapbuf_backspace(struct gapbuf *const io_gap, size_t const i_offset)
perform a backspace operation
Definition: gapbuf.c:177
unsigned char __FAR * gapbuf_line_prev(size_t *io_offset, struct gapbuf const *const i_gap)
move to previous line
Definition: gapbuf.c:330
int gapbuf_delete(struct gapbuf *const io_gap, size_t const i_offset)
delete a character
Definition: gapbuf.c:245
void gapbuf_assign(struct gapbuf *const o_gap)
initialize gapbuf object
Definition: gapbuf.c:61
size_t m_block_size
Definition: gapbuf.h:25
unsigned char const __FAR * gapbuf_text(struct gapbuf *const io_gap)
get the text buffer
Definition: gapbuf.c:403
unsigned char __FAR * gapbuf_char_prev(size_t *io_offset, struct gapbuf const *const i_gap)
move to previous character
Definition: gapbuf.c:282