comparison util.h @ 681:ceb73b712121

Fix an issue in editBuffer handling.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 09 Jul 2018 05:59:13 +0300
parents 32c13602c091
children 93d0e1547842
comparison
equal deleted inserted replaced
680:7d4730232ee3 681:ceb73b712121
66 int nn_editbuf_insert(nn_editbuf_t *buf, size_t pos, char ch); 66 int nn_editbuf_insert(nn_editbuf_t *buf, size_t pos, char ch);
67 int nn_editbuf_delete(nn_editbuf_t *buf, size_t pos); 67 int nn_editbuf_delete(nn_editbuf_t *buf, size_t pos);
68 void nn_editbuf_clear(nn_editbuf_t *buf); 68 void nn_editbuf_clear(nn_editbuf_t *buf);
69 nn_editbuf_t * nn_editbuf_new(size_t n); 69 nn_editbuf_t * nn_editbuf_new(size_t n);
70 void nn_editbuf_free(nn_editbuf_t *buf); 70 void nn_editbuf_free(nn_editbuf_t *buf);
71 nn_editbuf_t * nn_editbuf_copy(nn_editbuf_t *src); 71 nn_editbuf_t * nn_editbuf_copy(const nn_editbuf_t *src);
72 void nn_editbuf_copy_to(nn_editbuf_t *dst, const nn_editbuf_t *src);
72 void nn_editbuf_setpos(nn_editbuf_t *buf, size_t pos); 73 void nn_editbuf_setpos(nn_editbuf_t *buf, size_t pos);
73 char * nn_editbuf_get_string(nn_editbuf_t *buf, size_t start, size_t end); 74 char * nn_editbuf_get_string(nn_editbuf_t *buf, size_t start, size_t end);
74 75
75 76
76 typedef struct 77 typedef struct