Mercurial > hg > nnchat
changeset 631:2c6945599b16
Rename a define.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 21 Jun 2014 20:01:17 +0300 |
parents | 46fcab5ff44e |
children | 5b059a85cab8 |
files | ui.c ui.h |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ui.c Sat Jun 21 20:01:08 2014 +0300 +++ b/ui.c Sat Jun 21 20:01:17 2014 +0300 @@ -32,7 +32,7 @@ if (res == NULL) return NULL; - res->data = th_ringbuf_new(NN_BACKBUF_LEN, nn_line_free); + res->data = th_ringbuf_new(SET_BACKBUF_LEN, nn_line_free); if (res->data == NULL) { th_free(res);
--- a/ui.h Sat Jun 21 20:01:08 2014 +0300 +++ b/ui.h Sat Jun 21 20:01:17 2014 +0300 @@ -25,8 +25,9 @@ #include "th_growbuf.h" #include "th_network.h" -#define SET_MAX_WINDOWS (32) -#define NN_BACKBUF_LEN (512) // Backbuffer size (in lines) + +#define SET_MAX_WINDOWS (32) // Max chat buffer windows +#define SET_BACKBUF_LEN (512) // Backbuffer size (in lines) typedef struct