Mercurial > hg > nnchat
comparison nnchat.c @ 141:cce05daf6f01
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 02 Nov 2010 21:48:54 +0200 |
parents | 2d2ef5bbcc11 |
children | 0b9910c3ed30 |
comparison
equal
deleted
inserted
replaced
140:2d2ef5bbcc11 | 141:cce05daf6f01 |
---|---|
23 #else | 23 #else |
24 #define SET_CONFIG_FILE ".nnchat" | 24 #define SET_CONFIG_FILE ".nnchat" |
25 #define SET_DIR_SEPARATOR "/" | 25 #define SET_DIR_SEPARATOR "/" |
26 #endif | 26 #endif |
27 | 27 |
28 #define SET_MAX_BACKBUF (1024) | 28 #define SET_MIN_BACKBUF (1024) /* Backbuffer size (in lines) */ |
29 #define SET_MAX_HISTORY (16) | 29 #define SET_MAX_HISTORY (16) /* Command history length */ |
30 #define SET_DELAY (15) | 30 #define SET_DELAY (15) |
31 #define SET_DELAY_USEC (SET_DELAY * 250) | 31 #define SET_DELAY_USEC (SET_DELAY * 250) |
32 #define SET_KEEPALIVE (15*60) /* Ping/keepalive period in seconds */ | 32 #define SET_KEEPALIVE (15*60) /* Ping/keepalive period in seconds */ |
33 | 33 |
34 | 34 |
222 | 222 |
223 int printWin(WINDOW *win, const char *fmt) | 223 int printWin(WINDOW *win, const char *fmt) |
224 { | 224 { |
225 const char *s = fmt; | 225 const char *s = fmt; |
226 int col = 0; | 226 int col = 0; |
227 | 227 |
228 while (*s) { | 228 while (*s) { |
229 if (*s == '½') { | 229 if (*s == '½') { |
230 int val = 0; | 230 int val = 0; |
231 s++; | 231 s++; |
232 if (*s == '½') { | 232 if (*s == '½') { |