home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Archive Magazine 1995
/
ARCHIVE95.iso
/
discs
/
shareware
/
share_40
/
read
/
!Read
/
h
/
ReadHdr
next >
Wrap
Text File
|
1990-09-06
|
3KB
|
121 lines
/* Read header file
Fri,17 Aug 1990
Copyright C.T.Stretch 1990
*/
#include "wimpt.h"
#include "win.h"
#include "baricon.h"
#include "res.h"
#include "template.h"
#include "xferrecv.h"
#include "saveas.h"
#include "flex.h"
#include "wimp.h"
#include "sprite.h"
#include "bbc.h"
#include "werr.h"
#include "dbox.h"
#include "event.h"
#include "menu.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#ifndef BOOL
#define BOOL int
#define TRUE 1
#define FALSE 0
#endif
#define BEEP bbc_vdu(7)
#define XMAX 80
#define YMAX 128
#define CHMAX 128
#define GAP 2
#define ELINE 4
#define SCALE 1024
#define CHAR1 32
#define CHARS (127-CHAR1)
#define MASK1 wimp_EMPTRENTER
#define MASK0 (wimp_EMPTRENTER|wimp_EMNULL)
#define SPRITE 0xFF9
#define TEXT 0xFFF
#define FNLEN 255
#define NOFONT 1
#define NOBOX 2
#define HALT 3
#define LEARN 4
#define READ 5
#define NONSTOP 6
extern int sw,sh,scw,sch,lineoff;
extern int gx0,gy0,gx1,gy1,gxn,gyn;
extern int ch,cw,pw,qw,dw;
extern int spacebar,pixfact,wtfact,refact,befact,queryat;
extern int weight[CHARS],redge[CHARS],bedge[CHARS];
extern int cweight[CHARS],credge[CHARS],cbedge[CHARS],counts[CHARS];
extern int box[XMAX+1];
extern int disp,top,base;
extern int row,col;
extern BOOL learning,skip;
extern int state,sprmem;
extern char *textarea,*countarea;
extern unsigned int *store,*fontarea;
extern sprite_area *area;
extern sprite_id scanspr;
extern menu barmenu,immenu,smenu,pmenu;
extern wimp_w image;
extern wimp_icon scanicon;
extern wimp_caretstr nocaret;
extern dbox db;
extern char icbuf[];
extern int ino;
extern char sfname[FNLEN+1],tfname[FNLEN+1],cfname[FNLEN+1],pfname[FNLEN+1];
extern char sfact[];
extern int xef,yef;
extern int rdfnt;
extern int dpci;
void read_fred(void);
void read_ud(void);
void read_set(int);
void locate_read(void);
void locate_row(int);
void locate_setchar(int);
void locate_auto(void);
void proc_invert(void);
void proc_proc(char*);
void proc_adjust(void);
void proc_size(void);
void proc_initshear(void);
BOOL scan_scan(int,int,unsigned int*);
BOOL scan_check(void);
void scan_size(void);
void spr_load(char*);
BOOL spr_save(char*,void*);
BOOL spr_getarea(void);
void spr_scan(void);
void spr_lose(void);
void spr_mode(void);
BOOL fnt_save(char*,void*);
void fnt_new(void);
void fnt_load(char*);
void fnt_lose(void);
void text_new(void);
BOOL text_save(char*,void*);
void text_load(char*);
void text_lose(void);
int rasm_alpha(unsigned int);
int rasm_dist(unsigned int*,unsigned int*);