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.30; |
7
|
|
|
|
|
|
|
|
8
|
15
|
|
|
15
|
|
905719
|
use v5.26; |
|
15
|
|
|
|
|
174
|
|
9
|
15
|
|
|
15
|
|
79
|
use warnings; |
|
15
|
|
|
|
|
33
|
|
|
15
|
|
|
|
|
459
|
|
10
|
|
|
|
|
|
|
|
11
|
15
|
|
|
15
|
|
93
|
use Exporter 'import'; |
|
15
|
|
|
|
|
36
|
|
|
15
|
|
|
|
|
1726
|
|
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
|
|
99
|
use constant MSG_CALL => 0x01; |
|
15
|
|
|
|
|
27
|
|
|
15
|
|
|
|
|
1156
|
|
97
|
15
|
|
|
15
|
|
98
|
use constant MSG_SUBSCRIBE => 0x02; |
|
15
|
|
|
|
|
33
|
|
|
15
|
|
|
|
|
805
|
|
98
|
15
|
|
|
15
|
|
103
|
use constant MSG_UNSUBSCRIBE => 0x03; |
|
15
|
|
|
|
|
28
|
|
|
15
|
|
|
|
|
782
|
|
99
|
15
|
|
|
15
|
|
94
|
use constant MSG_EVENT => 0x04; |
|
15
|
|
|
|
|
54
|
|
|
15
|
|
|
|
|
841
|
|
100
|
15
|
|
|
15
|
|
434
|
use constant MSG_GETPROP => 0x05; |
|
15
|
|
|
|
|
36
|
|
|
15
|
|
|
|
|
723
|
|
101
|
15
|
|
|
15
|
|
103
|
use constant MSG_SETPROP => 0x06; |
|
15
|
|
|
|
|
30
|
|
|
15
|
|
|
|
|
798
|
|
102
|
15
|
|
|
15
|
|
91
|
use constant MSG_WATCH => 0x07; |
|
15
|
|
|
|
|
42
|
|
|
15
|
|
|
|
|
766
|
|
103
|
15
|
|
|
15
|
|
104
|
use constant MSG_UNWATCH => 0x08; |
|
15
|
|
|
|
|
39
|
|
|
15
|
|
|
|
|
757
|
|
104
|
15
|
|
|
15
|
|
89
|
use constant MSG_UPDATE => 0x09; |
|
15
|
|
|
|
|
34
|
|
|
15
|
|
|
|
|
793
|
|
105
|
15
|
|
|
15
|
|
89
|
use constant MSG_DESTROY => 0x0a; |
|
15
|
|
|
|
|
27
|
|
|
15
|
|
|
|
|
753
|
|
106
|
15
|
|
|
15
|
|
120
|
use constant MSG_GETPROPELEM => 0x0b; |
|
15
|
|
|
|
|
34
|
|
|
15
|
|
|
|
|
698
|
|
107
|
15
|
|
|
15
|
|
120
|
use constant MSG_WATCH_CUSR => 0x0c; |
|
15
|
|
|
|
|
29
|
|
|
15
|
|
|
|
|
784
|
|
108
|
15
|
|
|
15
|
|
88
|
use constant MSG_CUSR_NEXT => 0x0d; |
|
15
|
|
|
|
|
54
|
|
|
15
|
|
|
|
|
719
|
|
109
|
15
|
|
|
15
|
|
94
|
use constant MSG_CUSR_DESTROY => 0x0e; |
|
15
|
|
|
|
|
33
|
|
|
15
|
|
|
|
|
732
|
|
110
|
|
|
|
|
|
|
|
111
|
15
|
|
|
15
|
|
86
|
use constant MSG_GETROOT => 0x40; |
|
15
|
|
|
|
|
42
|
|
|
15
|
|
|
|
|
749
|
|
112
|
15
|
|
|
15
|
|
94
|
use constant MSG_GETREGISTRY => 0x41; |
|
15
|
|
|
|
|
50
|
|
|
15
|
|
|
|
|
672
|
|
113
|
15
|
|
|
15
|
|
85
|
use constant MSG_INIT => 0x7f; |
|
15
|
|
|
|
|
28
|
|
|
15
|
|
|
|
|
808
|
|
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
# Responses |
116
|
15
|
|
|
15
|
|
99
|
use constant MSG_OK => 0x80; |
|
15
|
|
|
|
|
25
|
|
|
15
|
|
|
|
|
714
|
|
117
|
15
|
|
|
15
|
|
89
|
use constant MSG_ERROR => 0x81; |
|
15
|
|
|
|
|
31
|
|
|
15
|
|
|
|
|
904
|
|
118
|
15
|
|
|
15
|
|
102
|
use constant MSG_RESULT => 0x82; |
|
15
|
|
|
|
|
38
|
|
|
15
|
|
|
|
|
691
|
|
119
|
15
|
|
|
15
|
|
94
|
use constant MSG_SUBSCRIBED => 0x83; |
|
15
|
|
|
|
|
36
|
|
|
15
|
|
|
|
|
772
|
|
120
|
15
|
|
|
15
|
|
86
|
use constant MSG_WATCHING => 0x84; |
|
15
|
|
|
|
|
32
|
|
|
15
|
|
|
|
|
752
|
|
121
|
15
|
|
|
15
|
|
87
|
use constant MSG_WATCHING_CUSR => 0x85; |
|
15
|
|
|
|
|
44
|
|
|
15
|
|
|
|
|
721
|
|
122
|
15
|
|
|
15
|
|
95
|
use constant MSG_CUSR_RESULT => 0x86; |
|
15
|
|
|
|
|
71
|
|
|
15
|
|
|
|
|
835
|
|
123
|
|
|
|
|
|
|
|
124
|
15
|
|
|
15
|
|
90
|
use constant MSG_INITED => 0xff; |
|
15
|
|
|
|
|
27
|
|
|
15
|
|
|
|
|
747
|
|
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
# Property dimensions |
128
|
15
|
|
|
15
|
|
111
|
use constant DIM_SCALAR => 1; |
|
15
|
|
|
|
|
29
|
|
|
15
|
|
|
|
|
715
|
|
129
|
15
|
|
|
15
|
|
94
|
use constant DIM_HASH => 2; |
|
15
|
|
|
|
|
29
|
|
|
15
|
|
|
|
|
710
|
|
130
|
15
|
|
|
15
|
|
87
|
use constant DIM_QUEUE => 3; |
|
15
|
|
|
|
|
27
|
|
|
15
|
|
|
|
|
743
|
|
131
|
15
|
|
|
15
|
|
122
|
use constant DIM_ARRAY => 4; |
|
15
|
|
|
|
|
24
|
|
|
15
|
|
|
|
|
725
|
|
132
|
15
|
|
|
15
|
|
85
|
use constant DIM_OBJSET => 5; |
|
15
|
|
|
|
|
32
|
|
|
15
|
|
|
|
|
974
|
|
133
|
|
|
|
|
|
|
|
134
|
15
|
|
|
|
|
826
|
use constant DIMNAMES => [ |
135
|
|
|
|
|
|
|
undef, |
136
|
|
|
|
|
|
|
"scalar", |
137
|
|
|
|
|
|
|
"hash", |
138
|
|
|
|
|
|
|
"queue", |
139
|
|
|
|
|
|
|
"array", |
140
|
|
|
|
|
|
|
"objset", |
141
|
15
|
|
|
15
|
|
96
|
]; |
|
15
|
|
|
|
|
27
|
|
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
# Property change types |
144
|
15
|
|
|
15
|
|
87
|
use constant CHANGE_SET => 1; |
|
15
|
|
|
|
|
27
|
|
|
15
|
|
|
|
|
793
|
|
145
|
15
|
|
|
15
|
|
85
|
use constant CHANGE_ADD => 2; |
|
15
|
|
|
|
|
41
|
|
|
15
|
|
|
|
|
770
|
|
146
|
15
|
|
|
15
|
|
87
|
use constant CHANGE_DEL => 3; |
|
15
|
|
|
|
|
34
|
|
|
15
|
|
|
|
|
777
|
|
147
|
15
|
|
|
15
|
|
94
|
use constant CHANGE_PUSH => 4; |
|
15
|
|
|
|
|
24
|
|
|
15
|
|
|
|
|
902
|
|
148
|
15
|
|
|
15
|
|
94
|
use constant CHANGE_SHIFT => 5; |
|
15
|
|
|
|
|
29
|
|
|
15
|
|
|
|
|
744
|
|
149
|
15
|
|
|
15
|
|
86
|
use constant CHANGE_SPLICE => 6; |
|
15
|
|
|
|
|
27
|
|
|
15
|
|
|
|
|
775
|
|
150
|
15
|
|
|
15
|
|
103
|
use constant CHANGE_MOVE => 7; |
|
15
|
|
|
|
|
36
|
|
|
15
|
|
|
|
|
1346
|
|
151
|
|
|
|
|
|
|
|
152
|
15
|
|
|
|
|
996
|
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
|
|
119
|
}; |
|
15
|
|
|
|
|
57
|
|
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
# Cursor messages |
161
|
15
|
|
|
15
|
|
96
|
use constant CUSR_FIRST => 1; |
|
15
|
|
|
|
|
70
|
|
|
15
|
|
|
|
|
701
|
|
162
|
15
|
|
|
15
|
|
86
|
use constant CUSR_LAST => 2; |
|
15
|
|
|
|
|
30
|
|
|
15
|
|
|
|
|
697
|
|
163
|
15
|
|
|
15
|
|
86
|
use constant CUSR_FWD => 1; |
|
15
|
|
|
|
|
32
|
|
|
15
|
|
|
|
|
795
|
|
164
|
15
|
|
|
15
|
|
100
|
use constant CUSR_BACK => 2; |
|
15
|
|
|
|
|
30
|
|
|
15
|
|
|
|
|
801
|
|
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
# Stream data types |
167
|
15
|
|
|
15
|
|
90
|
use constant DATA_NUMBER => 0; |
|
15
|
|
|
|
|
40
|
|
|
15
|
|
|
|
|
737
|
|
168
|
15
|
|
|
15
|
|
87
|
use constant DATANUM_BOOLFALSE => 0; |
|
15
|
|
|
|
|
29
|
|
|
15
|
|
|
|
|
816
|
|
169
|
15
|
|
|
15
|
|
89
|
use constant DATANUM_BOOLTRUE => 1; |
|
15
|
|
|
|
|
33
|
|
|
15
|
|
|
|
|
790
|
|
170
|
15
|
|
|
15
|
|
98
|
use constant DATANUM_UINT8 => 2; |
|
15
|
|
|
|
|
55
|
|
|
15
|
|
|
|
|
747
|
|
171
|
15
|
|
|
15
|
|
90
|
use constant DATANUM_SINT8 => 3; |
|
15
|
|
|
|
|
36
|
|
|
15
|
|
|
|
|
740
|
|
172
|
15
|
|
|
15
|
|
88
|
use constant DATANUM_UINT16 => 4; |
|
15
|
|
|
|
|
30
|
|
|
15
|
|
|
|
|
680
|
|
173
|
15
|
|
|
15
|
|
82
|
use constant DATANUM_SINT16 => 5; |
|
15
|
|
|
|
|
32
|
|
|
15
|
|
|
|
|
713
|
|
174
|
15
|
|
|
15
|
|
87
|
use constant DATANUM_UINT32 => 6; |
|
15
|
|
|
|
|
36
|
|
|
15
|
|
|
|
|
784
|
|
175
|
15
|
|
|
15
|
|
95
|
use constant DATANUM_SINT32 => 7; |
|
15
|
|
|
|
|
32
|
|
|
15
|
|
|
|
|
707
|
|
176
|
15
|
|
|
15
|
|
89
|
use constant DATANUM_UINT64 => 8; |
|
15
|
|
|
|
|
31
|
|
|
15
|
|
|
|
|
723
|
|
177
|
15
|
|
|
15
|
|
94
|
use constant DATANUM_SINT64 => 9; |
|
15
|
|
|
|
|
45
|
|
|
15
|
|
|
|
|
783
|
|
178
|
15
|
|
|
15
|
|
90
|
use constant DATANUM_FLOAT16 => 16; |
|
15
|
|
|
|
|
44
|
|
|
15
|
|
|
|
|
830
|
|
179
|
15
|
|
|
15
|
|
125
|
use constant DATANUM_FLOAT32 => 17; |
|
15
|
|
|
|
|
32
|
|
|
15
|
|
|
|
|
746
|
|
180
|
15
|
|
|
15
|
|
88
|
use constant DATANUM_FLOAT64 => 18; |
|
15
|
|
|
|
|
38
|
|
|
15
|
|
|
|
|
766
|
|
181
|
15
|
|
|
15
|
|
86
|
use constant DATA_STRING => 1; |
|
15
|
|
|
|
|
43
|
|
|
15
|
|
|
|
|
700
|
|
182
|
15
|
|
|
15
|
|
113
|
use constant DATA_LIST => 2; |
|
15
|
|
|
|
|
29
|
|
|
15
|
|
|
|
|
709
|
|
183
|
15
|
|
|
15
|
|
83
|
use constant DATA_DICT => 3; |
|
15
|
|
|
|
|
40
|
|
|
15
|
|
|
|
|
887
|
|
184
|
15
|
|
|
15
|
|
90
|
use constant DATA_OBJECT => 4; |
|
15
|
|
|
|
|
26
|
|
|
15
|
|
|
|
|
805
|
|
185
|
15
|
|
|
15
|
|
95
|
use constant DATA_RECORD => 5; |
|
15
|
|
|
|
|
364
|
|
|
15
|
|
|
|
|
755
|
|
186
|
15
|
|
|
15
|
|
84
|
use constant DATA_META => 7; |
|
15
|
|
|
|
|
45
|
|
|
15
|
|
|
|
|
739
|
|
187
|
15
|
|
|
15
|
|
94
|
use constant DATAMETA_CONSTRUCT => 1; |
|
15
|
|
|
|
|
37
|
|
|
15
|
|
|
|
|
679
|
|
188
|
15
|
|
|
15
|
|
89
|
use constant DATAMETA_CLASS => 2; |
|
15
|
|
|
|
|
38
|
|
|
15
|
|
|
|
|
744
|
|
189
|
15
|
|
|
15
|
|
88
|
use constant DATAMETA_STRUCT => 3; |
|
15
|
|
|
|
|
28
|
|
|
15
|
|
|
|
|
683
|
|
190
|
|
|
|
|
|
|
|
191
|
15
|
|
|
15
|
|
85
|
use constant VERSION_MAJOR => 0; |
|
15
|
|
|
|
|
29
|
|
|
15
|
|
|
|
|
741
|
|
192
|
15
|
|
|
15
|
|
91
|
use constant VERSION_MINOR => 4; |
|
15
|
|
|
|
|
34
|
|
|
15
|
|
|
|
|
859
|
|
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
=head1 AUTHOR |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
Paul Evans |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
=cut |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
0x55AA; |