Moved PDCTHUNK definition to pdcos2.h. Preparatory to trying to make a

proper PDC_set_title().
This commit is contained in:
William McBrine
2007-01-06 18:01:04 +00:00
parent c5d1047c67
commit 895c552dde
2 changed files with 18 additions and 19 deletions

View File

@@ -11,7 +11,7 @@
* See the file maintain.er for details of the current maintainer. *
************************************************************************/
/* $Id: pdcos2.h,v 1.4 2006/11/13 21:17:54 wmcbrine Exp $ */
/* $Id: pdcos2.h,v 1.5 2007/01/06 18:01:04 wmcbrine Exp $ */
#include <stdlib.h>
#include <string.h>
@@ -30,6 +30,22 @@
#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__
# define PDCTHUNK(x) ((PCH)_emx_32to16(x))
# endif
#endif
extern int pdc_font;
extern void PDC_get_keyboard_info(void);

View File

@@ -13,7 +13,7 @@
#include "pdcos2.h"
RCSID("$Id: pdcscrn.c,v 1.66 2007/01/03 14:10:46 wmcbrine Exp $");
RCSID("$Id: pdcscrn.c,v 1.67 2007/01/06 18:01:04 wmcbrine Exp $");
int pdc_font; /* default font size */
@@ -22,28 +22,11 @@ static unsigned char *saved_screen = NULL;
static int saved_lines = 0;
static int saved_cols = 0;
#else
# ifdef __WATCOMC__
# define PDCTHUNK(x) ((ptr_16)(x))
# else
# ifdef __EMX__
# define PDCTHUNK(x) ((PCH)_emx_32to16(x))
# endif
# endif
# if defined(__WATCOMC__) && defined(__386__)
# define SEG16 _Seg16
# else
# define SEG16
# endif
# ifdef PDCTHUNK
# ifdef __EMX__
# define THUNKEDVIO VIOCOLORREG
# else
typedef void * SEG16 ptr_16;
typedef struct {
USHORT cb;
USHORT type;