-
Notifications
You must be signed in to change notification settings - Fork 7
/
ptoc.pas
107 lines (62 loc) · 2.3 KB
/
ptoc.pas
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
const
maxint = 2147483647;
type
word = 0..65535;
byte = -128..127;
var
input : text;
output : text;
function inc(x : integer) : integer; external;
function dec(x : integer) : integer; external;
function abs(x : real) : real; external;
function arctan(x : real) : real; external;
function bitsize(x : integer) : integer; external;
function size(x : integer) : integer; external;
function chr(x : integer) : char; external;
function cos(x : real) : real; external;
function eof(f : text) : boolean; external;
function eoln(f : text) : boolean; external;
function exp(x : real) : real; external;
function ioerror(f : text) : boolean; external;
function iostatus(f : text) : integer; external;
function ln(x : real) : real; external;
function odd(x : integer) : boolean; external;
function ord(c : char) : integer; external;
function pred(x : integer) : integer; external;
function ref(x : integer) : ^integer; external;
function round(x : real) : integer; external;
function sin(x : real) : real; external;
function sqr(x : real) : real; external;
function sqrt(x : real) : real; external;
function succ(x : integer) : integer; external;
function time : real; external;
procedure timestamp(var day, month, year, hour, min, sec : integer); external;
function trunc(x : real) : integer; external;
procedure break(x : text); external;
procedure close(x : text); external;
procedure delete(x : text); external;
procedure get(x : text); external;
procedure noioerror; external;
procedure pack(a : array [l..h:integer] of integer; i : integer;
z : integer);
external;
procedure unpack(z : integer;
var a : array [l..h:integer] of integer; i : integer);
external;
procedure page(f : text); external;
procedure put(x : text); external;
procedure assign(f : text; name : zero_terminated_string );
external;
procedure rename(f : text; name : zero_terminated_string );
external;
procedure open(f : text; name, history : zero_terminated_string;
var error_code : integer );
external;
procedure reset(f : text; name, options : zero_terminated_string;
var error_code : integer );
external;
procedure rewrite(f: text; name, options: zero_terminated_string;
var error_code : integer);
external;
procedure seek(s : text; offset : integer);
external;