1 |
|
#ifndef lint |
2 |
|
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
4 |
– |
#ifndef lint |
5 |
– |
static char sccsid[] = "@(#)subr.c 4.1 (Berkeley) 6/27/83"; |
6 |
– |
#endif |
4 |
|
|
5 |
|
#include <stdio.h> |
6 |
+ |
|
7 |
+ |
#include "local4014.h" |
8 |
+ |
#include "lib4014.h" |
9 |
+ |
|
10 |
|
float obotx = 0.; |
11 |
|
float oboty = 0.; |
12 |
|
float botx = 0.; |
19 |
|
int ohiy = -1; |
20 |
|
int ohix = -1; |
21 |
|
int oextra = -1; |
22 |
< |
cont(x,y){ |
22 |
> |
|
23 |
> |
extern void |
24 |
> |
cont( |
25 |
> |
int x, |
26 |
> |
int y |
27 |
> |
) |
28 |
> |
{ |
29 |
|
int hix,hiy,lox,loy,extra; |
30 |
|
int n; |
31 |
|
x = (x-obotx)*scalex + botx; |
34 |
|
hiy=(y>>7) & 037; |
35 |
|
lox = (x>>2)&037; |
36 |
|
loy=(y>>2)&037; |
37 |
< |
extra=x&03+(y<<2)&014; |
37 |
> |
extra=x&(03+(y<<2))&014; |
38 |
|
n = (abs(hix-ohix) + abs(hiy-ohiy) + 6) / 12; |
39 |
|
if(hiy != ohiy){ |
40 |
|
putch(hiy|040); |
67 |
|
putch(0); |
68 |
|
} |
69 |
|
|
70 |
< |
putch(c){ |
70 |
> |
extern void |
71 |
> |
putch( |
72 |
> |
int c |
73 |
> |
) |
74 |
> |
{ |
75 |
|
putc(c,stdout); |
76 |
|
} |
77 |
+ |
|