[526a993] | 1 | /*
|
---|
| 2 | =============================================================================
|
---|
| 3 | swinit.c -- external declarations
|
---|
| 4 | =============================================================================
|
---|
| 5 | */
|
---|
| 6 |
|
---|
[6262b5c] | 7 | #pragma once
|
---|
| 8 |
|
---|
[2340de6] | 9 | #include "fields.h"
|
---|
| 10 | #include "libdsp.h"
|
---|
[6aa430b] | 11 | #include "midas.h"
|
---|
[2340de6] | 12 | #include "score.h"
|
---|
| 13 | #include "scwheel.h"
|
---|
[6aa430b] | 14 | #include "stddefs.h"
|
---|
[6262b5c] | 15 | #include "stdint.h"
|
---|
| 16 |
|
---|
[e4a1376] | 17 | #include "vtyper.x"
|
---|
| 18 |
|
---|
[6262b5c] | 19 | /*
|
---|
| 20 | =============================================================================
|
---|
[526a993] | 21 | external variables
|
---|
[6262b5c] | 22 | =============================================================================
|
---|
| 23 | */
|
---|
| 24 |
|
---|
| 25 | extern int16_t BGeq[14];
|
---|
| 26 | extern int16_t BGother[14];
|
---|
| 27 | extern int16_t BGprmtr[14];
|
---|
| 28 | extern int16_t BarBcur[14];
|
---|
| 29 | extern int16_t BarCcur[14];
|
---|
| 30 | extern int16_t BotEdge;
|
---|
| 31 | extern int16_t LftEdge;
|
---|
| 32 | extern int16_t RgtEdge;
|
---|
| 33 | extern int16_t TopEdge;
|
---|
| 34 | extern int32_t afi;
|
---|
| 35 | extern int16_t articen[12];
|
---|
| 36 | extern LPF aswtbl[14];
|
---|
| 37 | extern int8_t bfs[128];
|
---|
| 38 | extern int8_t caname[16];
|
---|
| 39 | extern int16_t *cratex;
|
---|
| 40 | extern int16_t *cratey;
|
---|
| 41 | extern int32_t ctime;
|
---|
| 42 | extern void (*curmove)(void);
|
---|
| 43 | extern int32_t curtime;
|
---|
| 44 | extern int16_t (*curtype)(void);
|
---|
| 45 | extern void (*cx_key)(void);
|
---|
| 46 | extern void (*cx_upd)(void);
|
---|
| 47 | extern void (*cy_key)(void);
|
---|
| 48 | extern void (*cy_upd)(void);
|
---|
| 49 | extern void (*d_key)(int16_t k);
|
---|
| 50 | extern int8_t dspbuf[65];
|
---|
| 51 | extern int32_t dvwork;
|
---|
| 52 | extern void (*e_key)(void);
|
---|
[2340de6] | 53 | extern int8_t ebuf[MAXEBUF+1];
|
---|
[6262b5c] | 54 | extern int8_t errbuf[65];
|
---|
| 55 | extern int32_t frags;
|
---|
| 56 | extern int8_t *funcndx[256][2];
|
---|
| 57 | extern int16_t grpdyn[12];
|
---|
| 58 | extern int16_t grploc[12];
|
---|
| 59 | extern int16_t grpmode[12];
|
---|
| 60 | extern int16_t grpsel[12];
|
---|
| 61 | extern int16_t grpstat[12];
|
---|
| 62 | extern int16_t grptmap[12];
|
---|
| 63 | extern int16_t gtctab[12];
|
---|
[2340de6] | 64 | extern int32_t hwave[NUMWPCAL];
|
---|
| 65 | extern int8_t idbuf[65];
|
---|
[6262b5c] | 66 | extern int16_t ins2grp[12];
|
---|
| 67 | extern int16_t instmod[12];
|
---|
| 68 | extern int32_t iotime;
|
---|
| 69 | extern void (*itxput)(int16_t row, int16_t col, int8_t *txt, int16_t tag);
|
---|
| 70 | extern int16_t key2grp[88];
|
---|
| 71 | extern int8_t keystat[24];
|
---|
| 72 | extern int16_t lastart[16];
|
---|
| 73 | extern int16_t lastvce[12];
|
---|
| 74 | extern int16_t lastvel[12];
|
---|
| 75 | extern int32_t lcdontm;
|
---|
| 76 | extern int32_t lcdtime;
|
---|
| 77 | extern int32_t lcsum;
|
---|
| 78 | extern int8_t ldcmnt[38];
|
---|
| 79 | extern int8_t ldfile[9];
|
---|
[2340de6] | 80 | extern int16_t ldmap[N_SCORES];
|
---|
[6262b5c] | 81 | extern int8_t ldmsg1[65];
|
---|
| 82 | extern int8_t ldmsg2[65];
|
---|
| 83 | extern int8_t ldmsg3[65];
|
---|
| 84 | extern int8_t *lmln22;
|
---|
| 85 | extern int8_t *lmln23;
|
---|
| 86 | extern int8_t *lmln24;
|
---|
[2340de6] | 87 | extern int8_t loadedc[NLTYPES][37];
|
---|
| 88 | extern int8_t loadedf[NLTYPES][8];
|
---|
[6262b5c] | 89 | extern void (*m_key)(void);
|
---|
| 90 | extern int8_t masens[3];
|
---|
| 91 | extern int16_t mctlnum[4];
|
---|
[c93e44d] | 92 | extern int16_t mctlval[NCTRLS];
|
---|
| 93 | extern int16_t mdbyte[3];
|
---|
[6262b5c] | 94 | extern int16_t mpbend[48];
|
---|
| 95 | extern int8_t mpsust[48];
|
---|
[c93e44d] | 96 | extern int16_t mrstat[3];
|
---|
[6262b5c] | 97 | extern int16_t msmstv[3];
|
---|
| 98 | extern int32_t ndbytes;
|
---|
[2340de6] | 99 | extern int32_t nlpersc[N_SCORES];
|
---|
[6262b5c] | 100 | extern int16_t (*not_fld)(int16_t k);
|
---|
| 101 | extern int32_t noteoff;
|
---|
| 102 | extern int32_t noteon;
|
---|
| 103 | extern int32_t noteper;
|
---|
| 104 | extern int32_t noteval;
|
---|
| 105 | extern int32_t nrest;
|
---|
[2340de6] | 106 | extern int16_t offsets[NUMWPCAL];
|
---|
[6262b5c] | 107 | extern void (*olddkey)(int16_t k);
|
---|
| 108 | extern void (*oldekey)(void);
|
---|
| 109 | extern void (*oldmkey)(void);
|
---|
| 110 | extern LPF (*oldsw)[];
|
---|
| 111 | extern int16_t oldtun[128];
|
---|
| 112 | extern void (*oldxkey)(void);
|
---|
| 113 | extern void (*premove)(void);
|
---|
[2340de6] | 114 | extern int16_t prstab[NTRIGS];
|
---|
[6262b5c] | 115 | extern int32_t *pspool;
|
---|
| 116 | extern void (*pstmove)(void);
|
---|
| 117 | extern int16_t s_inst[12];
|
---|
| 118 | extern int16_t s_trns[12];
|
---|
| 119 | extern int32_t schksum;
|
---|
[2340de6] | 120 | extern int8_t scname[N_SCORES][16];
|
---|
| 121 | extern int32_t scsums[N_SCORES];
|
---|
[6262b5c] | 122 | extern int32_t se1_cnt;
|
---|
| 123 | extern int32_t se2_cnt;
|
---|
| 124 | extern int32_t se3_cnt;
|
---|
| 125 | extern BOOL se_chg;
|
---|
| 126 | extern int32_t snbreq;
|
---|
| 127 | extern int32_t snlreq;
|
---|
| 128 | extern int32_t sntbreq;
|
---|
| 129 | extern int32_t sntlreq;
|
---|
| 130 | extern int32_t spcount;
|
---|
[2340de6] | 131 | extern int32_t spool[MAX_SE];
|
---|
[6262b5c] | 132 | extern int32_t swcount;
|
---|
[2340de6] | 133 | extern int16_t swfifo[NSWFIFO];
|
---|
[6262b5c] | 134 | extern LPF (*swpt)[];
|
---|
| 135 | extern int32_t swrate;
|
---|
| 136 | extern int32_t swrmin;
|
---|
| 137 | extern int32_t swtemp;
|
---|
| 138 | extern int32_t t_bak;
|
---|
| 139 | extern int32_t t_cbgn;
|
---|
| 140 | extern int32_t t_cend;
|
---|
| 141 | extern int32_t t_ctr;
|
---|
| 142 | extern int32_t t_cur;
|
---|
| 143 | extern int32_t t_fwd;
|
---|
| 144 | extern int32_t t_ins;
|
---|
| 145 | extern int32_t t_note;
|
---|
| 146 | extern int32_t t_sbgn;
|
---|
| 147 | extern int32_t t_sec1;
|
---|
| 148 | extern int32_t t_sec2;
|
---|
| 149 | extern int32_t t_sect;
|
---|
| 150 | extern int32_t t_send;
|
---|
[2340de6] | 151 | extern int8_t trgtab[NTRIGS];
|
---|
[6262b5c] | 152 | extern int8_t tuncurn[33];
|
---|
[2340de6] | 153 | extern int8_t tunname[NTUNS][32];
|
---|
[6262b5c] | 154 | extern int16_t tuntab[128];
|
---|
[2340de6] | 155 | extern int16_t txfifo[NTKFIFO];
|
---|
| 156 | extern int16_t tyfifo[NTKFIFO];
|
---|
[6262b5c] | 157 | extern int16_t vce2grp[12];
|
---|
| 158 | extern int16_t vce2trg[12];
|
---|
[2340de6] | 159 | extern int16_t veltab[NTRIGS];
|
---|
| 160 | extern int32_t vknm[NUMHARM][NUMWPCAL];
|
---|
[6262b5c] | 161 | extern int8_t *vlbptr[3];
|
---|
[2340de6] | 162 | extern int16_t vmtab[NUMHARM];
|
---|
[e4a1376] | 163 | extern vtcurs vt_adv;
|
---|
| 164 | extern vtcurs vt_bsp;
|
---|
| 165 | extern vtcurs vt_cdn;
|
---|
| 166 | extern vtcurs vt_cup;
|
---|
| 167 | extern vtchar vt_dsp;
|
---|
| 168 | extern vtcurs vt_stop;
|
---|
[6262b5c] | 169 | extern int8_t *vtdeptr;
|
---|
[2340de6] | 170 | extern int16_t wsbuf[NUMWPCAL];
|
---|
[6262b5c] | 171 | extern int32_t wshfac;
|
---|
| 172 | extern void (*x_key)(void);
|
---|
| 173 | extern void (*xy_dn)(void);
|
---|
| 174 | extern void (*xy_up)(void);
|
---|
| 175 |
|
---|
| 176 | /*
|
---|
| 177 | =============================================================================
|
---|
[526a993] | 178 | external functions
|
---|
[6262b5c] | 179 | =============================================================================
|
---|
| 180 | */
|
---|
| 181 |
|
---|
| 182 | extern void swinit(void);
|
---|