Added cs to the list of languages
[midnight-commander.git] / src / global.h
blob31ed1aa9b38ea5724263a594a939aa173c7f9db8
1 #ifndef __GLOBAL_H
2 #define __GLOBAL_H
4 #include <stdlib.h> /* for free() and other usefull routins */
5 #include "fs.h"
6 #include <glib.h>
7 #include "mem.h"
8 #include "util.h"
9 #include "mad.h"
11 extern char *home_dir;
13 #ifdef min
14 #undef min
15 #endif
17 #ifdef max
18 #undef max
19 #endif
21 #define min(x, y) ((x) > (y) ? (y) : (x))
22 #define max(x, y) ((x) > (y) ? (x) : (y))
24 /* Just for keeping Your's brains from invention a proper size of the buffer :-) */
25 #define BUF_10K 10240L
26 #define BUF_8K 8192L
27 #define BUF_4K 4096L
28 #define BUF_1K 1024L
30 #define BUF_LARGE BUF_1K
31 #define BUF_MEDIUM 512
32 #define BUF_SMALL 128
33 #define BUF_TINY 64
35 void refresh_screen (void *);
37 /* AIX compiler doesn't understand '\e' */
38 #define ESC_CHAR '\033'
39 #define ESC_STR "\033"
41 #ifdef USE_BSD_CURSES
42 # define xgetch x_getch
43 #else
44 # define xgetch getch
45 #endif
47 #endif