summaryrefslogtreecommitdiff
path: root/system/multiuser/1.7.5/src/archive
blob: 8027b29ba0c8feb4de8ff4415e71b340ed0f0990 (plain)
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
(* ------------------- VERSION 14     06.03.86 ------------------- *)
PACKET archive DEFINES

               archive ,
               clear ,
               release ,
               format ,
               check ,
               reserve :


LET clear code      = 18 ,
    reserve code    = 19 ,
    free code       = 20 ,
    check read code = 22 ,
    format code     = 23 ;


TASK PROC archive :
 
  task ("ARCHIVE")

ENDPROC archive ;

PROC archive (TEXT CONST archive name, TASK CONST task) :

  call (reserve code, archive name, task)

ENDPROC archive ;

PROC reserve (TEXT CONST message, TASK CONST task) :

  call (reserve code, message, task)

END PROC reserve;

PROC reserve (TASK CONST task) :

  call(reserve code, "", task)

END PROC reserve;

PROC archive (TEXT CONST archive name, INT CONST station) :

  call (reserve code, archive name, station/ "ARCHIVE")

ENDPROC archive ;

PROC archive (TEXT CONST archive name):

  call (reserve code, archive name, archive)

ENDPROC archive ;

PROC release (TASK CONST task) :

  call (free code, "", task)

ENDPROC release ;

PROC clear (TASK CONST task) :

  call (clear code, "", task)

ENDPROC clear ;

PROC format (TASK CONST task) :

  format (0, task)

ENDPROC format ;

PROC format (INT CONST code, TASK CONST task) :

  call (format code , text (code), task)

ENDPROC format ;

PROC check (TEXT CONST file name, TASK CONST task) :

  call (check read code, file name, task)

ENDPROC check ;

PROC check (THESAURUS CONST nameset, TASK CONST task) :

  do (PROC (TEXT CONST, TASK CONST) check, nameset, task)

ENDPROC check ;

ENDPACKET archive ;