#ifndef __GLOBAL_H #define __GLOBAL_H #include /* for free() and other usefull routins */ #include "fs.h" #include #include "mem.h" #include "util.h" #include "mad.h" extern char *home_dir; #ifdef min #undef min #endif #ifdef max #undef max #endif #define min(x, y) ((x) > (y) ? (y) : (x)) #define max(x, y) ((x) > (y) ? (x) : (y)) /* Just for keeping Your's brains from invention a proper size of the buffer :-) */ #define BUF_10K 10240L #define BUF_8K 8192L #define BUF_4K 4096L #define BUF_1K 1024L #define BUF_LARGE BUF_1K #define BUF_MEDIUM 512 #define BUF_SMALL 128 #define BUF_TINY 64 void refresh_screen (void *); /* AIX compiler doesn't understand '\e' */ #define ESC_CHAR '\033' #define ESC_STR "\033" #ifdef USE_BSD_CURSES # define xgetch x_getch #else # define xgetch getch #endif #endif