Changeset 7258c6a in buchla-68k for ram/idfield.c
- Timestamp:
- 07/09/2017 04:45:34 PM (7 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/idfield.c
r0292fbb r7258c6a 20 20 extern void select(void); 21 21 extern void stdmkey(void); 22 extern void stddkey( short k);22 extern void stddkey(int16_t k); 23 23 extern void nokey(void); 24 24 extern void cxkstd(void); 25 25 extern void cykstd(void); 26 extern short vtoy(short val, short window);27 extern short ttox(unsigned time, short window);28 extern short timeto(short fn, short pj);29 extern void vcputsv(int *obase, int nw, int fg, int bg, int row, int col, char *str, int pitch);30 extern void dswin( short n);31 extern short stdctp1(void);32 extern short whatbox(void);33 extern short inspnt(struct instdef *ip, short fn, short inpnt);26 extern int16_t vtoy(int16_t val, int16_t window); 27 extern int16_t ttox(uint16_t time, int16_t window); 28 extern int16_t timeto(int16_t fn, int16_t pj); 29 extern void vcputsv(int16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str, int16_t pitch); 30 extern void dswin(int16_t n); 31 extern int16_t stdctp1(void); 32 extern int16_t whatbox(void); 33 extern int16_t inspnt(struct instdef *ip, int16_t fn, int16_t inpnt); 34 34 extern void pntsel(void); 35 extern void setseg( short pn, unsignedptime);36 extern void showpt( short q);37 38 extern short et_null(short n);39 extern short ef_null(short n);40 extern short rd_null(short n);41 extern short nd_null(short n, short k);42 extern short et_ipnt(short n);43 extern short ef_ipnt(short n);44 extern short rd_ipnt(short n);45 extern short nd_ipnt(short n, short k);46 extern short et_idin(short n);47 extern short ef_idin(short n);48 extern short rd_idin(short n);49 extern short nd_idin(short n, short k);50 extern short et_ivce(short n);51 extern short ef_ivce(short n);52 extern short rd_ivce(short n);53 extern short nd_ivce(short n, short k);54 extern short et_icnf(short n);55 extern short ef_icnf(short n);56 extern short rd_icnf(short n);57 extern short nd_icnf(short n, short k);58 extern short et_ival(short n);59 extern short ef_ival(short n);60 extern short rd_ival(short n);61 extern short nd_ival(short n, short k);62 extern short et_itim(short n);63 extern short ef_itim(short n);64 extern short rd_itim(short n);65 extern short nd_itim(short n, short k);66 extern short et_iosc(short nn);67 extern short ef_iosc(short nn);68 extern short rd_iosc(short nn);69 extern short nd_iosc(short nn, short k);70 extern short et_iact(short nn);71 extern short ef_iact(short nn);72 extern short rd_iact(short nn);73 extern short nd_iact(short nn, short k);74 extern short et_iwsn(short nn);75 extern short ef_iwsn(short nn);76 extern short rd_iwsn(short nn);77 extern short nd_iwsn(short nn, short k);78 extern short et_ires(short n);79 extern short ef_ires(short n);80 extern short rd_ires(short n);81 extern short nd_ires(short n, short k);82 extern short et_imlt(short n);83 extern short ef_imlt(short n);84 extern short rd_imlt(short n);85 extern short nd_imlt(short n, short k);86 87 extern u nsigned fromfpu(unsignedfputime);88 89 extern void *memset(void *vp, char c, int n);90 91 /* 92 93 */ 94 95 extern short curvce, curfunc, curpnt, hitbox, astat, idnamsw;96 extern short cxval, cyval, cxrate, cyrate, curslim, cmtype, cmfirst;97 extern short pecase, pntsv, npts, subj, idimsw, wcflag, imflag;98 extern short idcfsw, idsrcsw, vtcrow, vtccol, stcrow, stccol;99 extern short vtxval, vtyval;100 101 extern short temax, temin;102 103 extern short *cratex, *cratey, crate0[], crate1[];104 105 extern u nsigned*instob;106 107 extern charbfs[];108 extern char*idbxlbl[];109 110 extern short fnoff[];111 extern short idbox[][8];35 extern void setseg(int16_t pn, uint16_t ptime); 36 extern void showpt(int16_t q); 37 38 extern int16_t et_null(int16_t n); 39 extern int16_t ef_null(int16_t n); 40 extern int16_t rd_null(int16_t n); 41 extern int16_t nd_null(int16_t n, int16_t k); 42 extern int16_t et_ipnt(int16_t n); 43 extern int16_t ef_ipnt(int16_t n); 44 extern int16_t rd_ipnt(int16_t n); 45 extern int16_t nd_ipnt(int16_t n, int16_t k); 46 extern int16_t et_idin(int16_t n); 47 extern int16_t ef_idin(int16_t n); 48 extern int16_t rd_idin(int16_t n); 49 extern int16_t nd_idin(int16_t n, int16_t k); 50 extern int16_t et_ivce(int16_t n); 51 extern int16_t ef_ivce(int16_t n); 52 extern int16_t rd_ivce(int16_t n); 53 extern int16_t nd_ivce(int16_t n, int16_t k); 54 extern int16_t et_icnf(int16_t n); 55 extern int16_t ef_icnf(int16_t n); 56 extern int16_t rd_icnf(int16_t n); 57 extern int16_t nd_icnf(int16_t n, int16_t k); 58 extern int16_t et_ival(int16_t n); 59 extern int16_t ef_ival(int16_t n); 60 extern int16_t rd_ival(int16_t n); 61 extern int16_t nd_ival(int16_t n, int16_t k); 62 extern int16_t et_itim(int16_t n); 63 extern int16_t ef_itim(int16_t n); 64 extern int16_t rd_itim(int16_t n); 65 extern int16_t nd_itim(int16_t n, int16_t k); 66 extern int16_t et_iosc(int16_t nn); 67 extern int16_t ef_iosc(int16_t nn); 68 extern int16_t rd_iosc(int16_t nn); 69 extern int16_t nd_iosc(int16_t nn, int16_t k); 70 extern int16_t et_iact(int16_t nn); 71 extern int16_t ef_iact(int16_t nn); 72 extern int16_t rd_iact(int16_t nn); 73 extern int16_t nd_iact(int16_t nn, int16_t k); 74 extern int16_t et_iwsn(int16_t nn); 75 extern int16_t ef_iwsn(int16_t nn); 76 extern int16_t rd_iwsn(int16_t nn); 77 extern int16_t nd_iwsn(int16_t nn, int16_t k); 78 extern int16_t et_ires(int16_t n); 79 extern int16_t ef_ires(int16_t n); 80 extern int16_t rd_ires(int16_t n); 81 extern int16_t nd_ires(int16_t n, int16_t k); 82 extern int16_t et_imlt(int16_t n); 83 extern int16_t ef_imlt(int16_t n); 84 extern int16_t rd_imlt(int16_t n); 85 extern int16_t nd_imlt(int16_t n, int16_t k); 86 87 extern uint16_t fromfpu(uint16_t fputime); 88 89 extern void *memset(void *vp, int8_t c, int16_t n); 90 91 /* 92 93 */ 94 95 extern int16_t curvce, curfunc, curpnt, hitbox, astat, idnamsw; 96 extern int16_t cxval, cyval, cxrate, cyrate, curslim, cmtype, cmfirst; 97 extern int16_t pecase, pntsv, npts, subj, idimsw, wcflag, imflag; 98 extern int16_t idcfsw, idsrcsw, vtcrow, vtccol, stcrow, stccol; 99 extern int16_t vtxval, vtyval; 100 101 extern int16_t temax, temin; 102 103 extern int16_t *cratex, *cratey, crate0[], crate1[]; 104 105 extern uint16_t *instob; 106 107 extern int8_t bfs[]; 108 extern int8_t *idbxlbl[]; 109 110 extern int16_t fnoff[]; 111 extern int16_t idbox[][8]; 112 112 113 113 extern struct selbox *csbp; … … 124 124 125 125 void idx_key(void); 126 short idnfld(short k);126 int16_t idnfld(int16_t k); 127 127 void idcxupd(void); 128 128 void idcyupd(void); … … 134 134 */ 135 135 136 short zonemax[9] = { 63, 119, 175, 231, 287, 343, 399, 455, 509};137 138 short zoneinc[9] = { 2, 2, 4, 9, 18, 36, 73, 146, 303};136 int16_t zonemax[9] = { 63, 119, 175, 231, 287, 343, 399, 455, 509}; 137 138 int16_t zoneinc[9] = { 2, 2, 4, 9, 18, 36, 73, 146, 303}; 139 139 140 140 struct fet id_fet1[] = { … … 163 163 }; 164 164 165 char*srctbl[] = { /* source label table */165 int8_t *srctbl[] = { /* source label table */ 166 166 167 167 " ", /* 0 */ … … 248 248 void idcyupd(void) 249 249 { 250 register short pval, vh, vl;250 register int16_t pval, vh, vl; 251 251 252 252 if (wcflag NE -1) /* ws/cf menu page can't be up */ … … 317 317 void idcxupd(void) 318 318 { 319 register u nsignedth, tl;320 register u nsignedfptime, stime;321 short zone;319 register uint16_t th, tl; 320 register uint16_t fptime, stime; 321 int16_t zone; 322 322 323 323 if (idimsw) { /* see if instrument menu is up */ … … 435 435 */ 436 436 437 short idnfld(short k)437 int16_t idnfld(int16_t k) 438 438 { 439 register short endpnt, basepnt, t, fn;439 register int16_t endpnt, basepnt, t, fn; 440 440 register struct idfnhdr *fp; 441 441 register struct instdef *ip; … … 541 541 register struct sment *smp; 542 542 register struct valent *vep; 543 register short i;543 register int16_t i; 544 544 register struct instdef *ip; 545 545
Note:
See TracChangeset
for help on using the changeset viewer.