line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# You may distribute under the terms of either the GNU General Public License |
2
|
|
|
|
|
|
|
# or the Artistic License (the same terms as Perl itself) |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# (C) Paul Evans, 2010-2016 -- leonerd@leonerd.org.uk |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
package Tangence::Constants 0.29; |
7
|
|
|
|
|
|
|
|
8
|
15
|
|
|
15
|
|
738930
|
use v5.26; |
|
15
|
|
|
|
|
138
|
|
9
|
15
|
|
|
15
|
|
66
|
use warnings; |
|
15
|
|
|
|
|
23
|
|
|
15
|
|
|
|
|
407
|
|
10
|
|
|
|
|
|
|
|
11
|
15
|
|
|
15
|
|
64
|
use Exporter 'import'; |
|
15
|
|
|
|
|
38
|
|
|
15
|
|
|
|
|
1377
|
|
12
|
|
|
|
|
|
|
our @EXPORT = qw( |
13
|
|
|
|
|
|
|
MSG_CALL |
14
|
|
|
|
|
|
|
MSG_SUBSCRIBE |
15
|
|
|
|
|
|
|
MSG_UNSUBSCRIBE |
16
|
|
|
|
|
|
|
MSG_EVENT |
17
|
|
|
|
|
|
|
MSG_GETPROP |
18
|
|
|
|
|
|
|
MSG_SETPROP |
19
|
|
|
|
|
|
|
MSG_WATCH |
20
|
|
|
|
|
|
|
MSG_UNWATCH |
21
|
|
|
|
|
|
|
MSG_UPDATE |
22
|
|
|
|
|
|
|
MSG_DESTROY |
23
|
|
|
|
|
|
|
MSG_GETPROPELEM |
24
|
|
|
|
|
|
|
MSG_WATCH_CUSR |
25
|
|
|
|
|
|
|
MSG_CUSR_NEXT |
26
|
|
|
|
|
|
|
MSG_CUSR_DESTROY |
27
|
|
|
|
|
|
|
MSG_GETROOT |
28
|
|
|
|
|
|
|
MSG_GETREGISTRY |
29
|
|
|
|
|
|
|
MSG_INIT |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
MSG_OK |
32
|
|
|
|
|
|
|
MSG_ERROR |
33
|
|
|
|
|
|
|
MSG_RESULT |
34
|
|
|
|
|
|
|
MSG_SUBSCRIBED |
35
|
|
|
|
|
|
|
MSG_WATCHING |
36
|
|
|
|
|
|
|
MSG_WATCHING_CUSR |
37
|
|
|
|
|
|
|
MSG_CUSR_RESULT |
38
|
|
|
|
|
|
|
MSG_INITED |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
DIM_SCALAR |
41
|
|
|
|
|
|
|
DIM_HASH |
42
|
|
|
|
|
|
|
DIM_QUEUE |
43
|
|
|
|
|
|
|
DIM_ARRAY |
44
|
|
|
|
|
|
|
DIM_OBJSET |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
DIMNAMES |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
CHANGE_SET |
49
|
|
|
|
|
|
|
CHANGE_ADD |
50
|
|
|
|
|
|
|
CHANGE_DEL |
51
|
|
|
|
|
|
|
CHANGE_PUSH |
52
|
|
|
|
|
|
|
CHANGE_SHIFT |
53
|
|
|
|
|
|
|
CHANGE_SPLICE |
54
|
|
|
|
|
|
|
CHANGE_MOVE |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
CHANGETYPES |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
CUSR_FIRST |
59
|
|
|
|
|
|
|
CUSR_LAST |
60
|
|
|
|
|
|
|
CUSR_FWD |
61
|
|
|
|
|
|
|
CUSR_BACK |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
DATA_NUMBER |
64
|
|
|
|
|
|
|
DATA_STRING |
65
|
|
|
|
|
|
|
DATA_LIST |
66
|
|
|
|
|
|
|
DATA_DICT |
67
|
|
|
|
|
|
|
DATA_OBJECT |
68
|
|
|
|
|
|
|
DATA_RECORD |
69
|
|
|
|
|
|
|
DATA_META |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
DATANUM_BOOLFALSE |
72
|
|
|
|
|
|
|
DATANUM_BOOLTRUE |
73
|
|
|
|
|
|
|
DATANUM_UINT8 |
74
|
|
|
|
|
|
|
DATANUM_SINT8 |
75
|
|
|
|
|
|
|
DATANUM_UINT16 |
76
|
|
|
|
|
|
|
DATANUM_SINT16 |
77
|
|
|
|
|
|
|
DATANUM_UINT32 |
78
|
|
|
|
|
|
|
DATANUM_SINT32 |
79
|
|
|
|
|
|
|
DATANUM_UINT64 |
80
|
|
|
|
|
|
|
DATANUM_SINT64 |
81
|
|
|
|
|
|
|
DATANUM_FLOAT16 |
82
|
|
|
|
|
|
|
DATANUM_FLOAT32 |
83
|
|
|
|
|
|
|
DATANUM_FLOAT64 |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
DATAMETA_CONSTRUCT |
86
|
|
|
|
|
|
|
DATAMETA_CLASS |
87
|
|
|
|
|
|
|
DATAMETA_STRUCT |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
VERSION_MAJOR |
90
|
|
|
|
|
|
|
VERSION_MINOR |
91
|
|
|
|
|
|
|
); |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
# Message types |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
# Requests |
96
|
15
|
|
|
15
|
|
84
|
use constant MSG_CALL => 0x01; |
|
15
|
|
|
|
|
25
|
|
|
15
|
|
|
|
|
985
|
|
97
|
15
|
|
|
15
|
|
85
|
use constant MSG_SUBSCRIBE => 0x02; |
|
15
|
|
|
|
|
22
|
|
|
15
|
|
|
|
|
643
|
|
98
|
15
|
|
|
15
|
|
76
|
use constant MSG_UNSUBSCRIBE => 0x03; |
|
15
|
|
|
|
|
33
|
|
|
15
|
|
|
|
|
650
|
|
99
|
15
|
|
|
15
|
|
71
|
use constant MSG_EVENT => 0x04; |
|
15
|
|
|
|
|
22
|
|
|
15
|
|
|
|
|
723
|
|
100
|
15
|
|
|
15
|
|
78
|
use constant MSG_GETPROP => 0x05; |
|
15
|
|
|
|
|
28
|
|
|
15
|
|
|
|
|
607
|
|
101
|
15
|
|
|
15
|
|
77
|
use constant MSG_SETPROP => 0x06; |
|
15
|
|
|
|
|
27
|
|
|
15
|
|
|
|
|
664
|
|
102
|
15
|
|
|
15
|
|
71
|
use constant MSG_WATCH => 0x07; |
|
15
|
|
|
|
|
20
|
|
|
15
|
|
|
|
|
625
|
|
103
|
15
|
|
|
15
|
|
75
|
use constant MSG_UNWATCH => 0x08; |
|
15
|
|
|
|
|
20
|
|
|
15
|
|
|
|
|
612
|
|
104
|
15
|
|
|
15
|
|
68
|
use constant MSG_UPDATE => 0x09; |
|
15
|
|
|
|
|
24
|
|
|
15
|
|
|
|
|
663
|
|
105
|
15
|
|
|
15
|
|
77
|
use constant MSG_DESTROY => 0x0a; |
|
15
|
|
|
|
|
18
|
|
|
15
|
|
|
|
|
590
|
|
106
|
15
|
|
|
15
|
|
75
|
use constant MSG_GETPROPELEM => 0x0b; |
|
15
|
|
|
|
|
20
|
|
|
15
|
|
|
|
|
589
|
|
107
|
15
|
|
|
15
|
|
100
|
use constant MSG_WATCH_CUSR => 0x0c; |
|
15
|
|
|
|
|
22
|
|
|
15
|
|
|
|
|
662
|
|
108
|
15
|
|
|
15
|
|
76
|
use constant MSG_CUSR_NEXT => 0x0d; |
|
15
|
|
|
|
|
38
|
|
|
15
|
|
|
|
|
625
|
|
109
|
15
|
|
|
15
|
|
70
|
use constant MSG_CUSR_DESTROY => 0x0e; |
|
15
|
|
|
|
|
24
|
|
|
15
|
|
|
|
|
570
|
|
110
|
|
|
|
|
|
|
|
111
|
15
|
|
|
15
|
|
70
|
use constant MSG_GETROOT => 0x40; |
|
15
|
|
|
|
|
17
|
|
|
15
|
|
|
|
|
575
|
|
112
|
15
|
|
|
15
|
|
70
|
use constant MSG_GETREGISTRY => 0x41; |
|
15
|
|
|
|
|
37
|
|
|
15
|
|
|
|
|
569
|
|
113
|
15
|
|
|
15
|
|
67
|
use constant MSG_INIT => 0x7f; |
|
15
|
|
|
|
|
29
|
|
|
15
|
|
|
|
|
617
|
|
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
# Responses |
116
|
15
|
|
|
15
|
|
73
|
use constant MSG_OK => 0x80; |
|
15
|
|
|
|
|
25
|
|
|
15
|
|
|
|
|
574
|
|
117
|
15
|
|
|
15
|
|
69
|
use constant MSG_ERROR => 0x81; |
|
15
|
|
|
|
|
22
|
|
|
15
|
|
|
|
|
753
|
|
118
|
15
|
|
|
15
|
|
84
|
use constant MSG_RESULT => 0x82; |
|
15
|
|
|
|
|
29
|
|
|
15
|
|
|
|
|
582
|
|
119
|
15
|
|
|
15
|
|
71
|
use constant MSG_SUBSCRIBED => 0x83; |
|
15
|
|
|
|
|
24
|
|
|
15
|
|
|
|
|
599
|
|
120
|
15
|
|
|
15
|
|
70
|
use constant MSG_WATCHING => 0x84; |
|
15
|
|
|
|
|
40
|
|
|
15
|
|
|
|
|
529
|
|
121
|
15
|
|
|
15
|
|
65
|
use constant MSG_WATCHING_CUSR => 0x85; |
|
15
|
|
|
|
|
34
|
|
|
15
|
|
|
|
|
592
|
|
122
|
15
|
|
|
15
|
|
80
|
use constant MSG_CUSR_RESULT => 0x86; |
|
15
|
|
|
|
|
34
|
|
|
15
|
|
|
|
|
629
|
|
123
|
|
|
|
|
|
|
|
124
|
15
|
|
|
15
|
|
76
|
use constant MSG_INITED => 0xff; |
|
15
|
|
|
|
|
22
|
|
|
15
|
|
|
|
|
557
|
|
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
# Property dimensions |
128
|
15
|
|
|
15
|
|
65
|
use constant DIM_SCALAR => 1; |
|
15
|
|
|
|
|
27
|
|
|
15
|
|
|
|
|
619
|
|
129
|
15
|
|
|
15
|
|
73
|
use constant DIM_HASH => 2; |
|
15
|
|
|
|
|
25
|
|
|
15
|
|
|
|
|
559
|
|
130
|
15
|
|
|
15
|
|
70
|
use constant DIM_QUEUE => 3; |
|
15
|
|
|
|
|
24
|
|
|
15
|
|
|
|
|
597
|
|
131
|
15
|
|
|
15
|
|
69
|
use constant DIM_ARRAY => 4; |
|
15
|
|
|
|
|
27
|
|
|
15
|
|
|
|
|
648
|
|
132
|
15
|
|
|
15
|
|
77
|
use constant DIM_OBJSET => 5; |
|
15
|
|
|
|
|
22
|
|
|
15
|
|
|
|
|
809
|
|
133
|
|
|
|
|
|
|
|
134
|
15
|
|
|
|
|
606
|
use constant DIMNAMES => [ |
135
|
|
|
|
|
|
|
undef, |
136
|
|
|
|
|
|
|
"scalar", |
137
|
|
|
|
|
|
|
"hash", |
138
|
|
|
|
|
|
|
"queue", |
139
|
|
|
|
|
|
|
"array", |
140
|
|
|
|
|
|
|
"objset", |
141
|
15
|
|
|
15
|
|
82
|
]; |
|
15
|
|
|
|
|
22
|
|
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
# Property change types |
144
|
15
|
|
|
15
|
|
79
|
use constant CHANGE_SET => 1; |
|
15
|
|
|
|
|
27
|
|
|
15
|
|
|
|
|
577
|
|
145
|
15
|
|
|
15
|
|
73
|
use constant CHANGE_ADD => 2; |
|
15
|
|
|
|
|
29
|
|
|
15
|
|
|
|
|
607
|
|
146
|
15
|
|
|
15
|
|
75
|
use constant CHANGE_DEL => 3; |
|
15
|
|
|
|
|
21
|
|
|
15
|
|
|
|
|
541
|
|
147
|
15
|
|
|
15
|
|
67
|
use constant CHANGE_PUSH => 4; |
|
15
|
|
|
|
|
20
|
|
|
15
|
|
|
|
|
844
|
|
148
|
15
|
|
|
15
|
|
75
|
use constant CHANGE_SHIFT => 5; |
|
15
|
|
|
|
|
32
|
|
|
15
|
|
|
|
|
587
|
|
149
|
15
|
|
|
15
|
|
77
|
use constant CHANGE_SPLICE => 6; |
|
15
|
|
|
|
|
25
|
|
|
15
|
|
|
|
|
625
|
|
150
|
15
|
|
|
15
|
|
74
|
use constant CHANGE_MOVE => 7; |
|
15
|
|
|
|
|
24
|
|
|
15
|
|
|
|
|
1048
|
|
151
|
|
|
|
|
|
|
|
152
|
15
|
|
|
|
|
784
|
use constant CHANGETYPES => { |
153
|
|
|
|
|
|
|
DIM_SCALAR() => [qw( on_set )], |
154
|
|
|
|
|
|
|
DIM_HASH() => [qw( on_set on_add on_del )], |
155
|
|
|
|
|
|
|
DIM_QUEUE() => [qw( on_set on_push on_shift )], |
156
|
|
|
|
|
|
|
DIM_ARRAY() => [qw( on_set on_push on_shift on_splice on_move )], |
157
|
|
|
|
|
|
|
DIM_OBJSET() => [qw( on_set on_add on_del )], |
158
|
15
|
|
|
15
|
|
103
|
}; |
|
15
|
|
|
|
|
30
|
|
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
# Cursor messages |
161
|
15
|
|
|
15
|
|
84
|
use constant CUSR_FIRST => 1; |
|
15
|
|
|
|
|
46
|
|
|
15
|
|
|
|
|
585
|
|
162
|
15
|
|
|
15
|
|
77
|
use constant CUSR_LAST => 2; |
|
15
|
|
|
|
|
32
|
|
|
15
|
|
|
|
|
599
|
|
163
|
15
|
|
|
15
|
|
70
|
use constant CUSR_FWD => 1; |
|
15
|
|
|
|
|
24
|
|
|
15
|
|
|
|
|
622
|
|
164
|
15
|
|
|
15
|
|
69
|
use constant CUSR_BACK => 2; |
|
15
|
|
|
|
|
42
|
|
|
15
|
|
|
|
|
575
|
|
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
# Stream data types |
167
|
15
|
|
|
15
|
|
70
|
use constant DATA_NUMBER => 0; |
|
15
|
|
|
|
|
26
|
|
|
15
|
|
|
|
|
557
|
|
168
|
15
|
|
|
15
|
|
68
|
use constant DATANUM_BOOLFALSE => 0; |
|
15
|
|
|
|
|
25
|
|
|
15
|
|
|
|
|
664
|
|
169
|
15
|
|
|
15
|
|
76
|
use constant DATANUM_BOOLTRUE => 1; |
|
15
|
|
|
|
|
22
|
|
|
15
|
|
|
|
|
560
|
|
170
|
15
|
|
|
15
|
|
71
|
use constant DATANUM_UINT8 => 2; |
|
15
|
|
|
|
|
41
|
|
|
15
|
|
|
|
|
576
|
|
171
|
15
|
|
|
15
|
|
68
|
use constant DATANUM_SINT8 => 3; |
|
15
|
|
|
|
|
36
|
|
|
15
|
|
|
|
|
589
|
|
172
|
15
|
|
|
15
|
|
71
|
use constant DATANUM_UINT16 => 4; |
|
15
|
|
|
|
|
23
|
|
|
15
|
|
|
|
|
589
|
|
173
|
15
|
|
|
15
|
|
72
|
use constant DATANUM_SINT16 => 5; |
|
15
|
|
|
|
|
22
|
|
|
15
|
|
|
|
|
620
|
|
174
|
15
|
|
|
15
|
|
74
|
use constant DATANUM_UINT32 => 6; |
|
15
|
|
|
|
|
22
|
|
|
15
|
|
|
|
|
603
|
|
175
|
15
|
|
|
15
|
|
76
|
use constant DATANUM_SINT32 => 7; |
|
15
|
|
|
|
|
21
|
|
|
15
|
|
|
|
|
536
|
|
176
|
15
|
|
|
15
|
|
64
|
use constant DATANUM_UINT64 => 8; |
|
15
|
|
|
|
|
21
|
|
|
15
|
|
|
|
|
565
|
|
177
|
15
|
|
|
15
|
|
72
|
use constant DATANUM_SINT64 => 9; |
|
15
|
|
|
|
|
19
|
|
|
15
|
|
|
|
|
593
|
|
178
|
15
|
|
|
15
|
|
70
|
use constant DATANUM_FLOAT16 => 16; |
|
15
|
|
|
|
|
30
|
|
|
15
|
|
|
|
|
602
|
|
179
|
15
|
|
|
15
|
|
102
|
use constant DATANUM_FLOAT32 => 17; |
|
15
|
|
|
|
|
35
|
|
|
15
|
|
|
|
|
575
|
|
180
|
15
|
|
|
15
|
|
70
|
use constant DATANUM_FLOAT64 => 18; |
|
15
|
|
|
|
|
36
|
|
|
15
|
|
|
|
|
610
|
|
181
|
15
|
|
|
15
|
|
71
|
use constant DATA_STRING => 1; |
|
15
|
|
|
|
|
21
|
|
|
15
|
|
|
|
|
618
|
|
182
|
15
|
|
|
15
|
|
100
|
use constant DATA_LIST => 2; |
|
15
|
|
|
|
|
28
|
|
|
15
|
|
|
|
|
589
|
|
183
|
15
|
|
|
15
|
|
68
|
use constant DATA_DICT => 3; |
|
15
|
|
|
|
|
19
|
|
|
15
|
|
|
|
|
683
|
|
184
|
15
|
|
|
15
|
|
74
|
use constant DATA_OBJECT => 4; |
|
15
|
|
|
|
|
19
|
|
|
15
|
|
|
|
|
628
|
|
185
|
15
|
|
|
15
|
|
71
|
use constant DATA_RECORD => 5; |
|
15
|
|
|
|
|
305
|
|
|
15
|
|
|
|
|
584
|
|
186
|
15
|
|
|
15
|
|
106
|
use constant DATA_META => 7; |
|
15
|
|
|
|
|
45
|
|
|
15
|
|
|
|
|
562
|
|
187
|
15
|
|
|
15
|
|
79
|
use constant DATAMETA_CONSTRUCT => 1; |
|
15
|
|
|
|
|
23
|
|
|
15
|
|
|
|
|
603
|
|
188
|
15
|
|
|
15
|
|
70
|
use constant DATAMETA_CLASS => 2; |
|
15
|
|
|
|
|
24
|
|
|
15
|
|
|
|
|
581
|
|
189
|
15
|
|
|
15
|
|
73
|
use constant DATAMETA_STRUCT => 3; |
|
15
|
|
|
|
|
25
|
|
|
15
|
|
|
|
|
621
|
|
190
|
|
|
|
|
|
|
|
191
|
15
|
|
|
15
|
|
71
|
use constant VERSION_MAJOR => 0; |
|
15
|
|
|
|
|
37
|
|
|
15
|
|
|
|
|
605
|
|
192
|
15
|
|
|
15
|
|
125
|
use constant VERSION_MINOR => 4; |
|
15
|
|
|
|
|
20
|
|
|
15
|
|
|
|
|
773
|
|
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
=head1 AUTHOR |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
Paul Evans |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
=cut |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
0x55AA; |