summaryrefslogtreecommitdiff
path: root/payloads/libpayload/curses/PDCurses-3.4/os2/pdcos2.h
blob: 1c11d480eda4e7679e52cce8624cecab28cdb268 (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* Public Domain Curses */

/* $Id: pdcos2.h,v 1.9 2008/08/14 06:38:35 wmcbrine Exp $ */

#ifdef _MSC_VER
# define USE_OS2_H 1         /* Use the os2.h for the compiler       */
# define APIRET USHORT
#endif

#include <stdlib.h>
#include <string.h>

#ifdef EMXVIDEO
# include <sys/video.h>
#else
# define INCL_DOS
# define INCL_DOSMISC
# define INCL_WIN
# define INCL_VIO
# define INCL_KBD
# define INCL_MOU
# include <os2.h>
#endif

#include <curspriv.h>

#ifdef __WATCOMC__
# define PDCTHUNK(x) ((ptr_16)(x))
# ifdef __386__
#  define SEG16 _Seg16
# else
#  define SEG16
# endif

typedef void * SEG16 ptr_16;

#else
# ifdef __EMX__
#  ifdef __INNOTEK_LIBC__
#   define PDCTHUNK(x) ((PCH)_libc_32to16(x))
#  else
#   define PDCTHUNK(x) ((PCH)_emx_32to16(x))
#  endif
# endif
#endif

extern unsigned char *pdc_atrtab;
extern int pdc_font;

extern void PDC_get_keyboard_info(void);
extern void PDC_set_keyboard_default(void);