Mercurial > hg > nnchat
comparison util.h @ 492:73f8df0ecffe
Add dirty flag to editbuf struct and handling functions.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 27 May 2012 10:06:42 +0300 |
parents | ad7ddce47878 |
children | b6f6c989deab |
comparison
equal
deleted
inserted
replaced
491:942446795978 | 492:73f8df0ecffe |
---|---|
54 | 54 |
55 typedef struct | 55 typedef struct |
56 { | 56 { |
57 size_t pos, len, size; | 57 size_t pos, len, size; |
58 char *data; | 58 char *data; |
59 BOOL dirty; | |
59 } nn_editbuf_t; | 60 } nn_editbuf_t; |
60 | 61 |
61 int nn_editbuf_write(nn_editbuf_t *buf, size_t pos, char ch); | 62 int nn_editbuf_write(nn_editbuf_t *buf, size_t pos, char ch); |
62 int nn_editbuf_insert(nn_editbuf_t *buf, size_t pos, char ch); | 63 int nn_editbuf_insert(nn_editbuf_t *buf, size_t pos, char ch); |
63 int nn_editbuf_delete(nn_editbuf_t *buf, size_t pos); | 64 int nn_editbuf_delete(nn_editbuf_t *buf, size_t pos); |