comparison nnchat.c @ 139:c39399725f7b

Define some platform-specific constants.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 02 Nov 2010 21:47:07 +0200
parents fad8c31e41e6
children 2d2ef5bbcc11
comparison
equal deleted inserted replaced
138:3e221c16b087 139:c39399725f7b
15 #else 15 #else
16 #include <sys/wait.h> 16 #include <sys/wait.h>
17 #endif 17 #endif
18 #include <curses.h> 18 #include <curses.h>
19 19
20 #ifdef __WIN32
21 #define SET_CONFIG_FILE "nnchat-config.txt"
22 #define SET_DIR_SEPARATOR "\\"
23 #else
24 #define SET_CONFIG_FILE ".nnchat"
25 #define SET_DIR_SEPARATOR "/"
26 #endif
20 27
21 #define SET_MAX_BACKBUF (1024) 28 #define SET_MAX_BACKBUF (1024)
22 #define SET_MAX_HISTORY (16) 29 #define SET_MAX_HISTORY (16)
23 #define SET_DELAY (15) 30 #define SET_DELAY (15)
24 #define SET_DELAY_USEC (SET_DELAY * 250) 31 #define SET_DELAY_USEC (SET_DELAY * 250)