1 | /*
|
---|
2 | =============================================================================
|
---|
3 | swinit.c -- external declarations
|
---|
4 | =============================================================================
|
---|
5 | */
|
---|
6 |
|
---|
7 | #pragma once
|
---|
8 |
|
---|
9 | #include "fields.h"
|
---|
10 | #include "libdsp.h"
|
---|
11 | #include "midas.h"
|
---|
12 | #include "score.h"
|
---|
13 | #include "scwheel.h"
|
---|
14 | #include "stddefs.h"
|
---|
15 | #include "stdint.h"
|
---|
16 |
|
---|
17 | #include "vtyper.x"
|
---|
18 |
|
---|
19 | /*
|
---|
20 | =============================================================================
|
---|
21 | external variables
|
---|
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);
|
---|
53 | extern int8_t ebuf[MAXEBUF+1];
|
---|
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];
|
---|
64 | extern int32_t hwave[NUMWPCAL];
|
---|
65 | extern int8_t idbuf[65];
|
---|
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];
|
---|
80 | extern int16_t ldmap[N_SCORES];
|
---|
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;
|
---|
87 | extern int8_t loadedc[NLTYPES][37];
|
---|
88 | extern int8_t loadedf[NLTYPES][8];
|
---|
89 | extern void (*m_key)(void);
|
---|
90 | extern int8_t masens[3];
|
---|
91 | extern int16_t mctlnum[4];
|
---|
92 | extern int16_t mctlval[NCTRLS];
|
---|
93 | extern int16_t mdbyte[3];
|
---|
94 | extern int16_t mpbend[48];
|
---|
95 | extern int8_t mpsust[48];
|
---|
96 | extern int16_t mrstat[3];
|
---|
97 | extern int16_t msmstv[3];
|
---|
98 | extern int32_t ndbytes;
|
---|
99 | extern int32_t nlpersc[N_SCORES];
|
---|
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;
|
---|
106 | extern int16_t offsets[NUMWPCAL];
|
---|
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);
|
---|
114 | extern int16_t prstab[NTRIGS];
|
---|
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;
|
---|
120 | extern int8_t scname[N_SCORES][16];
|
---|
121 | extern int32_t scsums[N_SCORES];
|
---|
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;
|
---|
131 | extern int32_t spool[MAX_SE];
|
---|
132 | extern int32_t swcount;
|
---|
133 | extern int16_t swfifo[NSWFIFO];
|
---|
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;
|
---|
151 | extern int8_t trgtab[NTRIGS];
|
---|
152 | extern int8_t tuncurn[33];
|
---|
153 | extern int8_t tunname[NTUNS][32];
|
---|
154 | extern int16_t tuntab[128];
|
---|
155 | extern int16_t txfifo[NTKFIFO];
|
---|
156 | extern int16_t tyfifo[NTKFIFO];
|
---|
157 | extern int16_t vce2grp[12];
|
---|
158 | extern int16_t vce2trg[12];
|
---|
159 | extern int16_t veltab[NTRIGS];
|
---|
160 | extern int32_t vknm[NUMHARM][NUMWPCAL];
|
---|
161 | extern int8_t *vlbptr[3];
|
---|
162 | extern int16_t vmtab[NUMHARM];
|
---|
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;
|
---|
169 | extern int8_t *vtdeptr;
|
---|
170 | extern int16_t wsbuf[NUMWPCAL];
|
---|
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 | =============================================================================
|
---|
178 | external functions
|
---|
179 | =============================================================================
|
---|
180 | */
|
---|
181 |
|
---|
182 | extern void swinit(void);
|
---|