File: prototab.c

package info (click to toggle)
libhsync 0.5.7-1.2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,060 kB
  • ctags: 543
  • sloc: sh: 7,944; ansic: 5,413; makefile: 154
file content (271 lines) | stat: -rw-r--r-- 17,119 bytes parent folder | download
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
/* AUTOGENERATED BY mkprototab.sh, DO NOT EDIT */

#include "includes.h"
#include "protocol.h"
#include "command.h"
#include "prototab.h"

/* This file defines an array mapping command IDs to the operation kind,
 * implied literal value, length of the first and second parameters,
 * and length of the whole command.  The implied value is only used
 * if the first parameter length is zero. */

const struct hs_prototab_ent _hs_prototab[] = {
    { op_kind_eof       ,   0, 0, 0, 1 }            /*    0 */, 
    { op_kind_literal   ,   1, 0, 0, 1 }            /*  0x1 */, 
    { op_kind_literal   ,   2, 0, 0, 1 }            /*  0x2 */, 
    { op_kind_literal   ,   3, 0, 0, 1 }            /*  0x3 */, 
    { op_kind_literal   ,   4, 0, 0, 1 }            /*  0x4 */, 
    { op_kind_literal   ,   5, 0, 0, 1 }            /*  0x5 */, 
    { op_kind_literal   ,   6, 0, 0, 1 }            /*  0x6 */, 
    { op_kind_literal   ,   7, 0, 0, 1 }            /*  0x7 */, 
    { op_kind_literal   ,   8, 0, 0, 1 }            /*  0x8 */, 
    { op_kind_literal   ,   9, 0, 0, 1 }            /*  0x9 */, 
    { op_kind_literal   ,  10, 0, 0, 1 }            /*  0xa */, 
    { op_kind_literal   ,  11, 0, 0, 1 }            /*  0xb */, 
    { op_kind_literal   ,  12, 0, 0, 1 }            /*  0xc */, 
    { op_kind_literal   ,  13, 0, 0, 1 }            /*  0xd */, 
    { op_kind_literal   ,  14, 0, 0, 1 }            /*  0xe */, 
    { op_kind_literal   ,  15, 0, 0, 1 }            /*  0xf */, 
    { op_kind_literal   ,  16, 0, 0, 1 }            /* 0x10 */, 
    { op_kind_literal   ,  17, 0, 0, 1 }            /* 0x11 */, 
    { op_kind_literal   ,  18, 0, 0, 1 }            /* 0x12 */, 
    { op_kind_literal   ,  19, 0, 0, 1 }            /* 0x13 */, 
    { op_kind_literal   ,  20, 0, 0, 1 }            /* 0x14 */, 
    { op_kind_literal   ,  21, 0, 0, 1 }            /* 0x15 */, 
    { op_kind_literal   ,  22, 0, 0, 1 }            /* 0x16 */, 
    { op_kind_literal   ,  23, 0, 0, 1 }            /* 0x17 */, 
    { op_kind_literal   ,  24, 0, 0, 1 }            /* 0x18 */, 
    { op_kind_literal   ,  25, 0, 0, 1 }            /* 0x19 */, 
    { op_kind_literal   ,  26, 0, 0, 1 }            /* 0x1a */, 
    { op_kind_literal   ,  27, 0, 0, 1 }            /* 0x1b */, 
    { op_kind_literal   ,  28, 0, 0, 1 }            /* 0x1c */, 
    { op_kind_literal   ,  29, 0, 0, 1 }            /* 0x1d */, 
    { op_kind_literal   ,  30, 0, 0, 1 }            /* 0x1e */, 
    { op_kind_literal   ,  31, 0, 0, 1 }            /* 0x1f */, 
    { op_kind_literal   ,  32, 0, 0, 1 }            /* 0x20 */, 
    { op_kind_literal   ,  33, 0, 0, 1 }            /* 0x21 */, 
    { op_kind_literal   ,  34, 0, 0, 1 }            /* 0x22 */, 
    { op_kind_literal   ,  35, 0, 0, 1 }            /* 0x23 */, 
    { op_kind_literal   ,  36, 0, 0, 1 }            /* 0x24 */, 
    { op_kind_literal   ,  37, 0, 0, 1 }            /* 0x25 */, 
    { op_kind_literal   ,  38, 0, 0, 1 }            /* 0x26 */, 
    { op_kind_literal   ,  39, 0, 0, 1 }            /* 0x27 */, 
    { op_kind_literal   ,  40, 0, 0, 1 }            /* 0x28 */, 
    { op_kind_literal   ,  41, 0, 0, 1 }            /* 0x29 */, 
    { op_kind_literal   ,  42, 0, 0, 1 }            /* 0x2a */, 
    { op_kind_literal   ,  43, 0, 0, 1 }            /* 0x2b */, 
    { op_kind_literal   ,  44, 0, 0, 1 }            /* 0x2c */, 
    { op_kind_literal   ,  45, 0, 0, 1 }            /* 0x2d */, 
    { op_kind_literal   ,  46, 0, 0, 1 }            /* 0x2e */, 
    { op_kind_literal   ,  47, 0, 0, 1 }            /* 0x2f */, 
    { op_kind_literal   ,  48, 0, 0, 1 }            /* 0x30 */, 
    { op_kind_literal   ,  49, 0, 0, 1 }            /* 0x31 */, 
    { op_kind_literal   ,  50, 0, 0, 1 }            /* 0x32 */, 
    { op_kind_literal   ,  51, 0, 0, 1 }            /* 0x33 */, 
    { op_kind_literal   ,  52, 0, 0, 1 }            /* 0x34 */, 
    { op_kind_literal   ,  53, 0, 0, 1 }            /* 0x35 */, 
    { op_kind_literal   ,  54, 0, 0, 1 }            /* 0x36 */, 
    { op_kind_literal   ,  55, 0, 0, 1 }            /* 0x37 */, 
    { op_kind_literal   ,  56, 0, 0, 1 }            /* 0x38 */, 
    { op_kind_literal   ,  57, 0, 0, 1 }            /* 0x39 */, 
    { op_kind_literal   ,  58, 0, 0, 1 }            /* 0x3a */, 
    { op_kind_literal   ,  59, 0, 0, 1 }            /* 0x3b */, 
    { op_kind_literal   ,  60, 0, 0, 1 }            /* 0x3c */, 
    { op_kind_literal   ,  61, 0, 0, 1 }            /* 0x3d */, 
    { op_kind_literal   ,  62, 0, 0, 1 }            /* 0x3e */, 
    { op_kind_literal   ,  63, 0, 0, 1 }            /* 0x3f */, 
    { op_kind_literal   ,  64, 0, 0, 1 }            /* 0x40 */, 
    { op_kind_literal   ,  65, 0, 0, 1 }            /* 0x41 */, 
    { op_kind_literal   ,  66, 0, 0, 1 }            /* 0x42 */, 
    { op_kind_literal   ,  67, 0, 0, 1 }            /* 0x43 */, 
    { op_kind_literal   ,  68, 0, 0, 1 }            /* 0x44 */, 
    { op_kind_literal   ,  69, 0, 0, 1 }            /* 0x45 */, 
    { op_kind_literal   ,  70, 0, 0, 1 }            /* 0x46 */, 
    { op_kind_literal   ,  71, 0, 0, 1 }            /* 0x47 */, 
    { op_kind_literal   ,  72, 0, 0, 1 }            /* 0x48 */, 
    { op_kind_literal   ,  73, 0, 0, 1 }            /* 0x49 */, 
    { op_kind_literal   ,  74, 0, 0, 1 }            /* 0x4a */, 
    { op_kind_literal   ,  75, 0, 0, 1 }            /* 0x4b */, 
    { op_kind_literal   ,  76, 0, 0, 1 }            /* 0x4c */, 
    { op_kind_literal   ,  77, 0, 0, 1 }            /* 0x4d */, 
    { op_kind_literal   ,  78, 0, 0, 1 }            /* 0x4e */, 
    { op_kind_literal   ,  79, 0, 0, 1 }            /* 0x4f */, 
    { op_kind_literal   ,  80, 0, 0, 1 }            /* 0x50 */, 
    { op_kind_literal   ,  81, 0, 0, 1 }            /* 0x51 */, 
    { op_kind_literal   ,  82, 0, 0, 1 }            /* 0x52 */, 
    { op_kind_literal   ,  83, 0, 0, 1 }            /* 0x53 */, 
    { op_kind_literal   ,  84, 0, 0, 1 }            /* 0x54 */, 
    { op_kind_literal   ,  85, 0, 0, 1 }            /* 0x55 */, 
    { op_kind_literal   ,  86, 0, 0, 1 }            /* 0x56 */, 
    { op_kind_literal   ,  87, 0, 0, 1 }            /* 0x57 */, 
    { op_kind_literal   ,  88, 0, 0, 1 }            /* 0x58 */, 
    { op_kind_literal   ,  89, 0, 0, 1 }            /* 0x59 */, 
    { op_kind_literal   ,  90, 0, 0, 1 }            /* 0x5a */, 
    { op_kind_literal   ,  91, 0, 0, 1 }            /* 0x5b */, 
    { op_kind_literal   ,  92, 0, 0, 1 }            /* 0x5c */, 
    { op_kind_literal   ,  93, 0, 0, 1 }            /* 0x5d */, 
    { op_kind_literal   ,  94, 0, 0, 1 }            /* 0x5e */, 
    { op_kind_literal   ,  95, 0, 0, 1 }            /* 0x5f */, 
    { op_kind_literal   ,  96, 0, 0, 1 }            /* 0x60 */, 
    { op_kind_literal   ,  97, 0, 0, 1 }            /* 0x61 */, 
    { op_kind_literal   ,  98, 0, 0, 1 }            /* 0x62 */, 
    { op_kind_literal   ,  99, 0, 0, 1 }            /* 0x63 */, 
    { op_kind_literal   , 100, 0, 0, 1 }            /* 0x64 */, 
    { op_kind_literal   , 101, 0, 0, 1 }            /* 0x65 */, 
    { op_kind_literal   , 102, 0, 0, 1 }            /* 0x66 */, 
    { op_kind_literal   , 103, 0, 0, 1 }            /* 0x67 */, 
    { op_kind_literal   , 104, 0, 0, 1 }            /* 0x68 */, 
    { op_kind_literal   , 105, 0, 0, 1 }            /* 0x69 */, 
    { op_kind_literal   , 106, 0, 0, 1 }            /* 0x6a */, 
    { op_kind_literal   , 107, 0, 0, 1 }            /* 0x6b */, 
    { op_kind_literal   , 108, 0, 0, 1 }            /* 0x6c */, 
    { op_kind_literal   , 109, 0, 0, 1 }            /* 0x6d */, 
    { op_kind_literal   , 110, 0, 0, 1 }            /* 0x6e */, 
    { op_kind_literal   , 111, 0, 0, 1 }            /* 0x6f */, 
    { op_kind_literal   , 112, 0, 0, 1 }            /* 0x70 */, 
    { op_kind_literal   , 113, 0, 0, 1 }            /* 0x71 */, 
    { op_kind_literal   , 114, 0, 0, 1 }            /* 0x72 */, 
    { op_kind_literal   , 115, 0, 0, 1 }            /* 0x73 */, 
    { op_kind_literal   , 116, 0, 0, 1 }            /* 0x74 */, 
    { op_kind_literal   , 117, 0, 0, 1 }            /* 0x75 */, 
    { op_kind_literal   , 118, 0, 0, 1 }            /* 0x76 */, 
    { op_kind_literal   , 119, 0, 0, 1 }            /* 0x77 */, 
    { op_kind_literal   , 120, 0, 0, 1 }            /* 0x78 */, 
    { op_kind_literal   ,   0, 1, 0, 2 }            /* 0x79 */, 
    { op_kind_literal   ,   0, 2, 0, 3 }            /* 0x7a */, 
    { op_kind_literal   ,   0, 4, 0, 5 }            /* 0x7b */, 
    { op_kind_signature ,   1, 0, 0, 1 }            /* 0x7c */, 
    { op_kind_signature ,   2, 0, 0, 1 }            /* 0x7d */, 
    { op_kind_signature ,   3, 0, 0, 1 }            /* 0x7e */, 
    { op_kind_signature ,   4, 0, 0, 1 }            /* 0x7f */, 
    { op_kind_signature ,   5, 0, 0, 1 }            /* 0x80 */, 
    { op_kind_signature ,   6, 0, 0, 1 }            /* 0x81 */, 
    { op_kind_signature ,   7, 0, 0, 1 }            /* 0x82 */, 
    { op_kind_signature ,   8, 0, 0, 1 }            /* 0x83 */, 
    { op_kind_signature ,   9, 0, 0, 1 }            /* 0x84 */, 
    { op_kind_signature ,  10, 0, 0, 1 }            /* 0x85 */, 
    { op_kind_signature ,  11, 0, 0, 1 }            /* 0x86 */, 
    { op_kind_signature ,  12, 0, 0, 1 }            /* 0x87 */, 
    { op_kind_signature ,  13, 0, 0, 1 }            /* 0x88 */, 
    { op_kind_signature ,  14, 0, 0, 1 }            /* 0x89 */, 
    { op_kind_signature ,  15, 0, 0, 1 }            /* 0x8a */, 
    { op_kind_signature ,  16, 0, 0, 1 }            /* 0x8b */, 
    { op_kind_signature ,  17, 0, 0, 1 }            /* 0x8c */, 
    { op_kind_signature ,  18, 0, 0, 1 }            /* 0x8d */, 
    { op_kind_signature ,  19, 0, 0, 1 }            /* 0x8e */, 
    { op_kind_signature ,  20, 0, 0, 1 }            /* 0x8f */, 
    { op_kind_signature ,  21, 0, 0, 1 }            /* 0x90 */, 
    { op_kind_signature ,  22, 0, 0, 1 }            /* 0x91 */, 
    { op_kind_signature ,  23, 0, 0, 1 }            /* 0x92 */, 
    { op_kind_signature ,  24, 0, 0, 1 }            /* 0x93 */, 
    { op_kind_signature ,  25, 0, 0, 1 }            /* 0x94 */, 
    { op_kind_signature ,  26, 0, 0, 1 }            /* 0x95 */, 
    { op_kind_signature ,  27, 0, 0, 1 }            /* 0x96 */, 
    { op_kind_signature ,  28, 0, 0, 1 }            /* 0x97 */, 
    { op_kind_signature ,  29, 0, 0, 1 }            /* 0x98 */, 
    { op_kind_signature ,  30, 0, 0, 1 }            /* 0x99 */, 
    { op_kind_signature ,  31, 0, 0, 1 }            /* 0x9a */, 
    { op_kind_signature ,  32, 0, 0, 1 }            /* 0x9b */, 
    { op_kind_signature ,  33, 0, 0, 1 }            /* 0x9c */, 
    { op_kind_signature ,  34, 0, 0, 1 }            /* 0x9d */, 
    { op_kind_signature ,  35, 0, 0, 1 }            /* 0x9e */, 
    { op_kind_signature ,  36, 0, 0, 1 }            /* 0x9f */, 
    { op_kind_signature ,  37, 0, 0, 1 }            /* 0xa0 */, 
    { op_kind_signature ,  38, 0, 0, 1 }            /* 0xa1 */, 
    { op_kind_signature ,  39, 0, 0, 1 }            /* 0xa2 */, 
    { op_kind_signature ,  40, 0, 0, 1 }            /* 0xa3 */, 
    { op_kind_signature ,  41, 0, 0, 1 }            /* 0xa4 */, 
    { op_kind_signature ,  42, 0, 0, 1 }            /* 0xa5 */, 
    { op_kind_signature ,  43, 0, 0, 1 }            /* 0xa6 */, 
    { op_kind_signature ,  44, 0, 0, 1 }            /* 0xa7 */, 
    { op_kind_signature ,  45, 0, 0, 1 }            /* 0xa8 */, 
    { op_kind_signature ,  46, 0, 0, 1 }            /* 0xa9 */, 
    { op_kind_signature ,  47, 0, 0, 1 }            /* 0xaa */, 
    { op_kind_signature ,  48, 0, 0, 1 }            /* 0xab */, 
    { op_kind_signature ,  49, 0, 0, 1 }            /* 0xac */, 
    { op_kind_signature ,  50, 0, 0, 1 }            /* 0xad */, 
    { op_kind_signature ,  51, 0, 0, 1 }            /* 0xae */, 
    { op_kind_signature ,  52, 0, 0, 1 }            /* 0xaf */, 
    { op_kind_signature ,  53, 0, 0, 1 }            /* 0xb0 */, 
    { op_kind_signature ,  54, 0, 0, 1 }            /* 0xb1 */, 
    { op_kind_signature ,  55, 0, 0, 1 }            /* 0xb2 */, 
    { op_kind_signature ,  56, 0, 0, 1 }            /* 0xb3 */, 
    { op_kind_signature ,  57, 0, 0, 1 }            /* 0xb4 */, 
    { op_kind_signature ,  58, 0, 0, 1 }            /* 0xb5 */, 
    { op_kind_signature ,  59, 0, 0, 1 }            /* 0xb6 */, 
    { op_kind_signature ,  60, 0, 0, 1 }            /* 0xb7 */, 
    { op_kind_signature ,  61, 0, 0, 1 }            /* 0xb8 */, 
    { op_kind_signature ,  62, 0, 0, 1 }            /* 0xb9 */, 
    { op_kind_signature ,  63, 0, 0, 1 }            /* 0xba */, 
    { op_kind_signature ,  64, 0, 0, 1 }            /* 0xbb */, 
    { op_kind_signature ,  65, 0, 0, 1 }            /* 0xbc */, 
    { op_kind_signature ,  66, 0, 0, 1 }            /* 0xbd */, 
    { op_kind_signature ,  67, 0, 0, 1 }            /* 0xbe */, 
    { op_kind_signature ,  68, 0, 0, 1 }            /* 0xbf */, 
    { op_kind_signature ,  69, 0, 0, 1 }            /* 0xc0 */, 
    { op_kind_signature ,  70, 0, 0, 1 }            /* 0xc1 */, 
    { op_kind_signature ,  71, 0, 0, 1 }            /* 0xc2 */, 
    { op_kind_signature ,  72, 0, 0, 1 }            /* 0xc3 */, 
    { op_kind_signature ,  73, 0, 0, 1 }            /* 0xc4 */, 
    { op_kind_signature ,  74, 0, 0, 1 }            /* 0xc5 */, 
    { op_kind_signature ,  75, 0, 0, 1 }            /* 0xc6 */, 
    { op_kind_signature ,  76, 0, 0, 1 }            /* 0xc7 */, 
    { op_kind_signature ,  77, 0, 0, 1 }            /* 0xc8 */, 
    { op_kind_signature ,  78, 0, 0, 1 }            /* 0xc9 */, 
    { op_kind_signature ,  79, 0, 0, 1 }            /* 0xca */, 
    { op_kind_signature ,  80, 0, 0, 1 }            /* 0xcb */, 
    { op_kind_signature ,  81, 0, 0, 1 }            /* 0xcc */, 
    { op_kind_signature ,  82, 0, 0, 1 }            /* 0xcd */, 
    { op_kind_signature ,  83, 0, 0, 1 }            /* 0xce */, 
    { op_kind_signature ,  84, 0, 0, 1 }            /* 0xcf */, 
    { op_kind_signature ,  85, 0, 0, 1 }            /* 0xd0 */, 
    { op_kind_signature ,  86, 0, 0, 1 }            /* 0xd1 */, 
    { op_kind_signature ,  87, 0, 0, 1 }            /* 0xd2 */, 
    { op_kind_signature ,  88, 0, 0, 1 }            /* 0xd3 */, 
    { op_kind_signature ,  89, 0, 0, 1 }            /* 0xd4 */, 
    { op_kind_signature ,  90, 0, 0, 1 }            /* 0xd5 */, 
    { op_kind_signature ,  91, 0, 0, 1 }            /* 0xd6 */, 
    { op_kind_signature ,  92, 0, 0, 1 }            /* 0xd7 */, 
    { op_kind_signature ,  93, 0, 0, 1 }            /* 0xd8 */, 
    { op_kind_signature ,  94, 0, 0, 1 }            /* 0xd9 */, 
    { op_kind_signature ,  95, 0, 0, 1 }            /* 0xda */, 
    { op_kind_signature ,  96, 0, 0, 1 }            /* 0xdb */, 
    { op_kind_signature ,  97, 0, 0, 1 }            /* 0xdc */, 
    { op_kind_signature ,  98, 0, 0, 1 }            /* 0xdd */, 
    { op_kind_signature ,  99, 0, 0, 1 }            /* 0xde */, 
    { op_kind_signature , 100, 0, 0, 1 }            /* 0xdf */, 
    { op_kind_signature , 101, 0, 0, 1 }            /* 0xe0 */, 
    { op_kind_signature , 102, 0, 0, 1 }            /* 0xe1 */, 
    { op_kind_signature , 103, 0, 0, 1 }            /* 0xe2 */, 
    { op_kind_signature , 104, 0, 0, 1 }            /* 0xe3 */, 
    { op_kind_signature , 105, 0, 0, 1 }            /* 0xe4 */, 
    { op_kind_signature , 106, 0, 0, 1 }            /* 0xe5 */, 
    { op_kind_signature , 107, 0, 0, 1 }            /* 0xe6 */, 
    { op_kind_signature , 108, 0, 0, 1 }            /* 0xe7 */, 
    { op_kind_signature , 109, 0, 0, 1 }            /* 0xe8 */, 
    { op_kind_signature , 110, 0, 0, 1 }            /* 0xe9 */, 
    { op_kind_signature , 111, 0, 0, 1 }            /* 0xea */, 
    { op_kind_signature , 112, 0, 0, 1 }            /* 0xeb */, 
    { op_kind_signature , 113, 0, 0, 1 }            /* 0xec */, 
    { op_kind_signature , 114, 0, 0, 1 }            /* 0xed */, 
    { op_kind_signature , 115, 0, 0, 1 }            /* 0xee */, 
    { op_kind_signature , 116, 0, 0, 1 }            /* 0xef */, 
    { op_kind_signature , 117, 0, 0, 1 }            /* 0xf0 */, 
    { op_kind_signature , 118, 0, 0, 1 }            /* 0xf1 */, 
    { op_kind_signature , 119, 0, 0, 1 }            /* 0xf2 */, 
    { op_kind_signature ,   0, 1, 0, 2 }            /* 0xf3 */, 
    { op_kind_signature ,   0, 2, 0, 3 }            /* 0xf4 */, 
    { op_kind_signature ,   0, 4, 0, 5 }            /* 0xf5 */, 
    { op_kind_checksum  ,   0, 2, 0, 3 }            /* 0xf6 */, 
    { op_kind_copy      ,   0, 2, 1, 4 }            /* 0xf7 */, 
    { op_kind_copy      ,   0, 2, 2, 5 }            /* 0xf8 */, 
    { op_kind_copy      ,   0, 2, 4, 7 }            /* 0xf9 */, 
    { op_kind_copy      ,   0, 4, 1, 6 }            /* 0xfa */, 
    { op_kind_copy      ,   0, 4, 2, 7 }            /* 0xfb */, 
    { op_kind_copy      ,   0, 4, 4, 9 }            /* 0xfc */, 
    { op_kind_reserved  ,   0, 8, 1, 10 }            /* 0xfd */, 
    { op_kind_reserved  ,   0, 8, 2, 11 }            /* 0xfe */, 
    { op_kind_reserved  ,   0, 8, 4, 13 }            /* 0xff */
};
/* end of autogenerated code */