home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FreeWare Collection 2
/
FreeSoftwareCollection2pd199x-jp.img
/
prnout
/
src
/
defs.h
next >
Wrap
Text File
|
1990-06-14
|
2KB
|
96 lines
#define printf con_printf
#define UNSIG unsigned short int
#define UCHAR unsigned char
#define TRUE 1
#define FALSE 0
#define ERR (-1)
#define HIT_COL 0x1D
#define STD_COL 0x0F
#define CMP_COL 0x1E
#define BAK_COL 0x06
#define CUR_ON 1
#define CUR_OFF 0
#define PSET 0
#define PRESET 1
#define OR 2
#define AND 3
#define XOR 4
#define NOT 5
#define LINE 0
#define BOX 1
#define FBOX 2
#define SLINE 3
#define SBOX 4
#define LINE_1 0
#define LINE_2 1
#define LINE_3 2
#define LINE_4 3
#define LINE_5 4
#define GRA_OFFX 298
#define GRA_OFFY 8
#define GRA_MAXX 639
#define GRA_MAXY 399
#define DUMMY 0
#define FUJITU 1
#define ESCP 2
#define PC98 3
#define DEFPP 2
typedef struct {
int yoko,tate;
int spc,lf;
int lmrg,lmax;
int pmrg,pmax;
} YOUSI;
typedef struct {
int yoko,tate;
} PRINTER;
#ifdef MAIN
int paper=DEFPP;
int page_flg=0;
int kan_flg=FALSE;
int odd_flg=FALSE;
int kin_flg=0;
int ryo_flg=1;
int typ_flg=0;
int fnt_flg=0;
int dsp_flg=FALSE;
YOUSI yousi[]={
{ 149,211,3,6,4,70,0,38 },
{ 182,257,3,6,8,80,0,48 },
{ 211,297,3,6,12,80,0,58 },
{ 257,364,3,6,15,106,0,74 },
{ 0,0,0,0,0,0,0,0 }
};
PRINTER printer[]={
{ 9,21 },
{ 9,21 },
{ 0,25 },
{ 0,20 },
{ 0,0 }
};
#else
extern int paper;
extern int page_flg;
extern int kan_flg;
extern int odd_flg;
extern int kin_flg;
extern int ryo_flg;
extern int typ_flg;
extern int fnt_flg;
extern int dsp_flg;
extern YOUSI yousi[];
extern PRINTER printer[];
#endif