mc/src/global.h

48 lines
840 B
C
Raw Normal View History

1998-02-27 07:54:42 +03:00
#ifndef __GLOBAL_H
#define __GLOBAL_H
#include <stdlib.h> /* for free() and other usefull routins */
#include "fs.h"
#include <glib.h>
#include "mem.h"
#include "util.h"
#include "mad.h"
1998-02-27 07:54:42 +03:00
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))
1998-02-27 07:54:42 +03:00
/* 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
1998-02-27 07:54:42 +03:00
#define BUF_LARGE BUF_1K
#define BUF_MEDIUM 512
#define BUF_SMALL 128
#define BUF_TINY 64
void refresh_screen (void *);
1998-02-27 07:54:42 +03:00
/* 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