source: buchla-68k/ram/swinit.x@ dade7a0

Last change on this file since dade7a0 was 2340de6, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Keep macros in external declarations.

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