-
Notifications
You must be signed in to change notification settings - Fork 0
/
DEBUG.INF
117 lines (104 loc) · 2.05 KB
/
DEBUG.INF
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
107
108
109
110
111
112
113
114
115
116
117
#IFDEF DEBUG;
Global PathInfo;
[ PathSub;
if(PathInfo==false)
{
PathInfo=true;
"Pathinfo enabled!";
}
PathInfo=false;
"Pathinfo disabled.";
];
[ RlockSub;
if(metaclass(noun)==Object)
{
give noun ~open;
give noun locked;
print (The) noun, " (",noun,") has been locked. You're bad to the bone.^";
}
];
[ RunlockSub;
if(metaclass(noun)==Object)
{
give noun ~open;
give noun ~locked;
print (The) noun, " (",noun,") has been unlocked.^";
}
];
[ OnSub x;
if(x==0) {
wn=consult_from;
switch(NextWord())
{
'henkel':
x=Henkel;
'petra':
x=Petra;
'john':
x=John;
'williams':
x=Williams;
'Schwartz':
x=Schwartz;
'all':
OnSub(Henkel);
OnSub(Petra);
OnSub(John);
OnSub(Williams);
OnSub(Schwartz);
rtrue;
}
}
if(metaclass(x)==Object && (x provides daemon))
{
StartDaemon(x);
print (The) x, "'s daemon has been started.^";
}
else
print (The) x," has no daemon.^";
rtrue;
];
[ OffSub x;
if(x==0) {
wn=consult_from;
switch(NextWord())
{
'henkel':
x=Henkel;
'petra':
x=Petra;
'john':
x=John;
'williams':
x=Williams;
'Schwartz':
x=Schwartz;
'all':
OffSub(Henkel);
OffSub(Petra);
OffSub(John);
OffSub(Williams);
OffSub(Schwartz);
rtrue;
}
}
if(x provides daemon)
{
StopDaemon(x);
print (The) x, "'s daemon has been stopped.^";
}
else
print (The) x," has no daemon.^";
rtrue;
];
Verb meta "path" "paths" "pathinfo"
* -> Path;
Verb meta "rlock"
* number -> Rlock;
Verb meta "runlock"
* number -> Runlock;
Verb meta "on"
* ConTopic -> On;
Verb meta "off"
* ConTopic -> Off;
#ENDIF;