| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#ifdef _MSC_VER |
| 6 |
# define USE_OS2_H 1 |
| 7 |
# define APIRET USHORT |
| 8 |
#endif |
| 9 |
|
| 10 |
#include <stdlib.h> |
| 11 |
#include <string.h> |
| 12 |
|
| 13 |
#ifdef EMXVIDEO |
| 14 |
# include <sys/video.h> |
| 15 |
#else |
| 16 |
# define INCL_DOS |
| 17 |
# define INCL_DOSMISC |
| 18 |
# define INCL_WIN |
| 19 |
# define INCL_VIO |
| 20 |
# define INCL_KBD |
| 21 |
# define INCL_MOU |
| 22 |
# include <os2.h> |
| 23 |
#endif |
| 24 |
|
| 25 |
#include <curspriv.h> |
| 26 |
|
| 27 |
#ifdef __WATCOMC__ |
| 28 |
# define PDCTHUNK(x) ((ptr_16)(x)) |
| 29 |
# ifdef __386__ |
| 30 |
# define SEG16 _Seg16 |
| 31 |
# else |
| 32 |
# define SEG16 |
| 33 |
# endif |
| 34 |
|
| 35 |
typedef void * SEG16 ptr_16; |
| 36 |
|
| 37 |
#else |
| 38 |
# ifdef __EMX__ |
| 39 |
# ifdef __INNOTEK_LIBC__ |
| 40 |
# define PDCTHUNK(x) ((PCH)_libc_32to16(x)) |
| 41 |
# else |
| 42 |
# define PDCTHUNK(x) ((PCH)_emx_32to16(x)) |
| 43 |
# endif |
| 44 |
# endif |
| 45 |
#endif |
| 46 |
|
| 47 |
extern unsigned char *pdc_atrtab; |
| 48 |
extern int pdc_font; |
| 49 |
|
| 50 |
extern void PDC_get_keyboard_info(void); |
| 51 |
extern void PDC_set_keyboard_default(void); |