blob: ccd1fb6cdb2fe95894992ce87e01017b27fe86f8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
include <pkg/igsfit.h>
# IGS_GETI -- Get the value of an integer parameter.
int procedure igs_geti (param)
int param # IGS parameter
include "igsfit.com"
begin
switch (param) {
case IGS_XORDER:
return (xorder)
case IGS_YORDER:
return (yorder)
default:
call error (0, "igs_geti: Unknown parameter")
}
end
# IGS_GETS -- Get the value of a string parameter.
procedure igs_gets (param, str, maxchar)
int param # IGS parameter
char str[maxchar] # String
int maxchar # Maximum number of characters
include "igsfit.com"
begin
switch (param) {
case IGS_FUNCTION:
call strcpy (function, str, maxchar)
default:
call error (0, "igs_gets: Unknown parameter")
}
end
# IGS_GETR -- Get the values of real valued fitting parameters.
real procedure igs_getr (param)
int param # Parameter to be get
include "igsfit.com"
begin
switch (param) {
case IGS_XMIN:
return (xmin)
case IGS_XMAX:
return (xmax)
case IGS_YMIN:
return (ymin)
case IGS_YMAX:
return (ymax)
}
end
|