-
Notifications
You must be signed in to change notification settings - Fork 1
/
sysdef.h
35 lines (28 loc) · 886 Bytes
/
sysdef.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* System V system header file
*/
/* Needed on Linux and Cygwin for getting the prototypes for wcwidth() */
/* and wcswidth(). */
#if defined(__linux__) || defined(__CYGWIN__)
#define _XOPEN_SOURCE 500
#endif
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <wchar.h>
#include <wctype.h>
#include <stdint.h>
#include <errno.h>
#include <limits.h>
#define KBLOCK 8192 /* Kill grow. */
#define GOOD 0 /* Good exit status. */
typedef uint_least16_t ucs2; /* BMP Unicode */
typedef int_least32_t ucs4; /* General Unicode */
typedef ucs4 KCHAR; /* Type for internal keystrokes */
#define MALLOCROUND 8 /* round up to 8 byte boundary */
#ifdef __linux__
# define bcopy(s,d,n) memmove((d),(s),(n)) /* memory-to-memory copy */
#endif
#define gettermtype() getenv("TERM") /* determine terminal type */