11 |
|
|
12 |
|
#include <stdio.h> |
13 |
|
|
14 |
+ |
#include "rterror.h" |
15 |
+ |
#include "meta.h" |
16 |
|
#include "mgvars.h" |
17 |
|
|
18 |
|
|
31 |
|
|
32 |
|
static int nplottable; /* number of plottable points */ |
33 |
|
|
34 |
+ |
static void climits(void); |
35 |
+ |
static void cstretch(int c, double x, double y); |
36 |
|
|
37 |
< |
cgraph(width, length) /* do a character graph to stdout */ |
38 |
< |
int width, length; |
37 |
> |
|
38 |
> |
extern void |
39 |
> |
cgraph( /* do a character graph to stdout */ |
40 |
> |
int width, |
41 |
> |
int length |
42 |
> |
) |
43 |
|
{ |
44 |
|
if (width * length > MAXSIZE) { |
45 |
|
fprintf(stderr, "%s: page too big\n", progname); |
52 |
|
} |
53 |
|
|
54 |
|
|
55 |
< |
climits() /* get min & max values */ |
55 |
> |
static void |
56 |
> |
climits(void) /* get min & max values */ |
57 |
|
{ |
58 |
< |
int i, cstretch(); |
58 |
> |
int i; |
59 |
|
|
60 |
|
xmin = gparam[XMIN].flags & DEFINED ? |
61 |
|
varvalue(gparam[XMIN].name) : |
83 |
|
} |
84 |
|
|
85 |
|
|
86 |
< |
cstretch(c, x, y) /* stretch our boundaries */ |
87 |
< |
int c; |
88 |
< |
double x, y; |
86 |
> |
void |
87 |
> |
cstretch( /* stretch our boundaries */ |
88 |
> |
int c, |
89 |
> |
double x, |
90 |
> |
double y |
91 |
> |
) |
92 |
|
{ |
93 |
|
if (gparam[XMIN].flags & DEFINED && |
94 |
|
x < xmin) |
116 |
|
} |
117 |
|
|
118 |
|
|
119 |
< |
cplot() /* do character plot */ |
119 |
> |
extern void |
120 |
> |
cplot(void) /* do character plot */ |
121 |
|
{ |
109 |
– |
int cpoint(); |
122 |
|
int i, j; |
123 |
|
register char *op; |
124 |
|
|
136 |
|
} |
137 |
|
|
138 |
|
|
139 |
< |
cpoint(c, x, y) /* store a point */ |
140 |
< |
int c; |
141 |
< |
double x, y; |
139 |
> |
extern void |
140 |
> |
cpoint( /* store a point */ |
141 |
> |
int c, |
142 |
> |
double x, |
143 |
> |
double y |
144 |
> |
) |
145 |
|
{ |
146 |
|
register int ndx; |
147 |
|
|