io-console 0.4.2 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
data/depend ADDED
@@ -0,0 +1,6 @@
1
+ $(OBJS): $(HDRS) $(ruby_headers) \
2
+ $(VK_HEADER) \
3
+ $(hdrdir)/ruby/io.h \
4
+ $(hdrdir)/ruby/encoding.h \
5
+ $(hdrdir)/ruby/oniguruma.h
6
+
data/extconf.rb CHANGED
@@ -1,10 +1,13 @@
1
+ # frozen_string_literal: false
1
2
  require 'mkmf'
2
3
 
3
4
  ok = true
4
5
  hdr = nil
5
6
  case
6
7
  when macro_defined?("_WIN32", "")
7
- have_func("rb_w32_map_errno", "ruby.h")
8
+ # rb_w32_map_errno: 1.8.7
9
+ vk_header = File.exist?("#$srcdir/win32_vk.list") ? "chksum" : "inc"
10
+ vk_header = "#{'{$(srcdir)}' if $nmake == ?m}win32_vk.#{vk_header}"
8
11
  when hdr = %w"termios.h termio.h".find {|h| have_header(h)}
9
12
  have_func("cfmakeraw", hdr)
10
13
  when have_header(hdr = "sgtty.h")
@@ -12,15 +15,13 @@ when have_header(hdr = "sgtty.h")
12
15
  else
13
16
  ok = false
14
17
  end
15
- ok &&= enable_config("io-console-force-compatible-with-1.8") ||
16
- macro_defined?("HAVE_RUBY_IO_H", cpp_include("ruby.h"))
17
18
  if ok
18
- have_header("sys/ioctl.h")
19
- have_func("rb_check_hash_type", "ruby.h")
20
- have_func("rb_io_get_write_io", "ruby/io.h")
21
- have_func("rb_cloexec_open", "ruby/io.h")
22
- if enable_config("io-console-rb_scan_args-optional-hash", true)
23
- $defs << "-DHAVE_RB_SCAN_ARGS_OPTIONAL_HASH=1"
24
- end
25
- create_makefile("io/console")
19
+ have_header("sys/ioctl.h") if hdr
20
+ # rb_check_hash_type: 1.9.3
21
+ # rb_io_get_write_io: 1.9.1
22
+ # rb_cloexec_open: 2.0.0
23
+ $defs << "-D""ENABLE_IO_GETPASS=1"
24
+ create_makefile("io/console") {|conf|
25
+ conf << "\n""VK_HEADER = #{vk_header}\n"
26
+ }
26
27
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: false
2
+ # fallback to console window size
1
3
  def IO.default_console_size
2
4
  [
3
5
  ENV["LINES"].to_i.nonzero? || 25,
@@ -12,6 +14,7 @@ rescue LoadError
12
14
  alias console_size default_console_size
13
15
  end
14
16
  else
17
+ # returns console window size
15
18
  def IO.console_size
16
19
  console.winsize
17
20
  rescue NoMethodError
@@ -0,0 +1,1400 @@
1
+ #define UNDEFINED_VK (unsigned short)-1
2
+ #ifndef VK_LBUTTON
3
+ # define VK_LBUTTON UNDEFINED_VK
4
+ #endif
5
+ #ifndef VK_RBUTTON
6
+ # define VK_RBUTTON UNDEFINED_VK
7
+ #endif
8
+ #ifndef VK_CANCEL
9
+ # define VK_CANCEL UNDEFINED_VK
10
+ #endif
11
+ #ifndef VK_MBUTTON
12
+ # define VK_MBUTTON UNDEFINED_VK
13
+ #endif
14
+ #ifndef VK_XBUTTON1
15
+ # define VK_XBUTTON1 UNDEFINED_VK
16
+ #endif
17
+ #ifndef VK_XBUTTON2
18
+ # define VK_XBUTTON2 UNDEFINED_VK
19
+ #endif
20
+ #ifndef VK_BACK
21
+ # define VK_BACK UNDEFINED_VK
22
+ #endif
23
+ #ifndef VK_TAB
24
+ # define VK_TAB UNDEFINED_VK
25
+ #endif
26
+ #ifndef VK_CLEAR
27
+ # define VK_CLEAR UNDEFINED_VK
28
+ #endif
29
+ #ifndef VK_RETURN
30
+ # define VK_RETURN UNDEFINED_VK
31
+ #endif
32
+ #ifndef VK_SHIFT
33
+ # define VK_SHIFT UNDEFINED_VK
34
+ #endif
35
+ #ifndef VK_CONTROL
36
+ # define VK_CONTROL UNDEFINED_VK
37
+ #endif
38
+ #ifndef VK_MENU
39
+ # define VK_MENU UNDEFINED_VK
40
+ #endif
41
+ #ifndef VK_PAUSE
42
+ # define VK_PAUSE UNDEFINED_VK
43
+ #endif
44
+ #ifndef VK_CAPITAL
45
+ # define VK_CAPITAL UNDEFINED_VK
46
+ #endif
47
+ #ifndef VK_KANA
48
+ # define VK_KANA UNDEFINED_VK
49
+ #endif
50
+ #ifndef VK_HANGEUL
51
+ # define VK_HANGEUL UNDEFINED_VK
52
+ #endif
53
+ #ifndef VK_HANGUL
54
+ # define VK_HANGUL UNDEFINED_VK
55
+ #endif
56
+ #ifndef VK_JUNJA
57
+ # define VK_JUNJA UNDEFINED_VK
58
+ #endif
59
+ #ifndef VK_FINAL
60
+ # define VK_FINAL UNDEFINED_VK
61
+ #endif
62
+ #ifndef VK_HANJA
63
+ # define VK_HANJA UNDEFINED_VK
64
+ #endif
65
+ #ifndef VK_KANJI
66
+ # define VK_KANJI UNDEFINED_VK
67
+ #endif
68
+ #ifndef VK_ESCAPE
69
+ # define VK_ESCAPE UNDEFINED_VK
70
+ #endif
71
+ #ifndef VK_CONVERT
72
+ # define VK_CONVERT UNDEFINED_VK
73
+ #endif
74
+ #ifndef VK_NONCONVERT
75
+ # define VK_NONCONVERT UNDEFINED_VK
76
+ #endif
77
+ #ifndef VK_ACCEPT
78
+ # define VK_ACCEPT UNDEFINED_VK
79
+ #endif
80
+ #ifndef VK_MODECHANGE
81
+ # define VK_MODECHANGE UNDEFINED_VK
82
+ #endif
83
+ #ifndef VK_SPACE
84
+ # define VK_SPACE UNDEFINED_VK
85
+ #endif
86
+ #ifndef VK_PRIOR
87
+ # define VK_PRIOR UNDEFINED_VK
88
+ #endif
89
+ #ifndef VK_NEXT
90
+ # define VK_NEXT UNDEFINED_VK
91
+ #endif
92
+ #ifndef VK_END
93
+ # define VK_END UNDEFINED_VK
94
+ #endif
95
+ #ifndef VK_HOME
96
+ # define VK_HOME UNDEFINED_VK
97
+ #endif
98
+ #ifndef VK_LEFT
99
+ # define VK_LEFT UNDEFINED_VK
100
+ #endif
101
+ #ifndef VK_UP
102
+ # define VK_UP UNDEFINED_VK
103
+ #endif
104
+ #ifndef VK_RIGHT
105
+ # define VK_RIGHT UNDEFINED_VK
106
+ #endif
107
+ #ifndef VK_DOWN
108
+ # define VK_DOWN UNDEFINED_VK
109
+ #endif
110
+ #ifndef VK_SELECT
111
+ # define VK_SELECT UNDEFINED_VK
112
+ #endif
113
+ #ifndef VK_PRINT
114
+ # define VK_PRINT UNDEFINED_VK
115
+ #endif
116
+ #ifndef VK_EXECUTE
117
+ # define VK_EXECUTE UNDEFINED_VK
118
+ #endif
119
+ #ifndef VK_SNAPSHOT
120
+ # define VK_SNAPSHOT UNDEFINED_VK
121
+ #endif
122
+ #ifndef VK_INSERT
123
+ # define VK_INSERT UNDEFINED_VK
124
+ #endif
125
+ #ifndef VK_DELETE
126
+ # define VK_DELETE UNDEFINED_VK
127
+ #endif
128
+ #ifndef VK_HELP
129
+ # define VK_HELP UNDEFINED_VK
130
+ #endif
131
+ #ifndef VK_LWIN
132
+ # define VK_LWIN UNDEFINED_VK
133
+ #endif
134
+ #ifndef VK_RWIN
135
+ # define VK_RWIN UNDEFINED_VK
136
+ #endif
137
+ #ifndef VK_APPS
138
+ # define VK_APPS UNDEFINED_VK
139
+ #endif
140
+ #ifndef VK_SLEEP
141
+ # define VK_SLEEP UNDEFINED_VK
142
+ #endif
143
+ #ifndef VK_NUMPAD0
144
+ # define VK_NUMPAD0 UNDEFINED_VK
145
+ #endif
146
+ #ifndef VK_NUMPAD1
147
+ # define VK_NUMPAD1 UNDEFINED_VK
148
+ #endif
149
+ #ifndef VK_NUMPAD2
150
+ # define VK_NUMPAD2 UNDEFINED_VK
151
+ #endif
152
+ #ifndef VK_NUMPAD3
153
+ # define VK_NUMPAD3 UNDEFINED_VK
154
+ #endif
155
+ #ifndef VK_NUMPAD4
156
+ # define VK_NUMPAD4 UNDEFINED_VK
157
+ #endif
158
+ #ifndef VK_NUMPAD5
159
+ # define VK_NUMPAD5 UNDEFINED_VK
160
+ #endif
161
+ #ifndef VK_NUMPAD6
162
+ # define VK_NUMPAD6 UNDEFINED_VK
163
+ #endif
164
+ #ifndef VK_NUMPAD7
165
+ # define VK_NUMPAD7 UNDEFINED_VK
166
+ #endif
167
+ #ifndef VK_NUMPAD8
168
+ # define VK_NUMPAD8 UNDEFINED_VK
169
+ #endif
170
+ #ifndef VK_NUMPAD9
171
+ # define VK_NUMPAD9 UNDEFINED_VK
172
+ #endif
173
+ #ifndef VK_MULTIPLY
174
+ # define VK_MULTIPLY UNDEFINED_VK
175
+ #endif
176
+ #ifndef VK_ADD
177
+ # define VK_ADD UNDEFINED_VK
178
+ #endif
179
+ #ifndef VK_SEPARATOR
180
+ # define VK_SEPARATOR UNDEFINED_VK
181
+ #endif
182
+ #ifndef VK_SUBTRACT
183
+ # define VK_SUBTRACT UNDEFINED_VK
184
+ #endif
185
+ #ifndef VK_DECIMAL
186
+ # define VK_DECIMAL UNDEFINED_VK
187
+ #endif
188
+ #ifndef VK_DIVIDE
189
+ # define VK_DIVIDE UNDEFINED_VK
190
+ #endif
191
+ #ifndef VK_F1
192
+ # define VK_F1 UNDEFINED_VK
193
+ #endif
194
+ #ifndef VK_F2
195
+ # define VK_F2 UNDEFINED_VK
196
+ #endif
197
+ #ifndef VK_F3
198
+ # define VK_F3 UNDEFINED_VK
199
+ #endif
200
+ #ifndef VK_F4
201
+ # define VK_F4 UNDEFINED_VK
202
+ #endif
203
+ #ifndef VK_F5
204
+ # define VK_F5 UNDEFINED_VK
205
+ #endif
206
+ #ifndef VK_F6
207
+ # define VK_F6 UNDEFINED_VK
208
+ #endif
209
+ #ifndef VK_F7
210
+ # define VK_F7 UNDEFINED_VK
211
+ #endif
212
+ #ifndef VK_F8
213
+ # define VK_F8 UNDEFINED_VK
214
+ #endif
215
+ #ifndef VK_F9
216
+ # define VK_F9 UNDEFINED_VK
217
+ #endif
218
+ #ifndef VK_F10
219
+ # define VK_F10 UNDEFINED_VK
220
+ #endif
221
+ #ifndef VK_F11
222
+ # define VK_F11 UNDEFINED_VK
223
+ #endif
224
+ #ifndef VK_F12
225
+ # define VK_F12 UNDEFINED_VK
226
+ #endif
227
+ #ifndef VK_F13
228
+ # define VK_F13 UNDEFINED_VK
229
+ #endif
230
+ #ifndef VK_F14
231
+ # define VK_F14 UNDEFINED_VK
232
+ #endif
233
+ #ifndef VK_F15
234
+ # define VK_F15 UNDEFINED_VK
235
+ #endif
236
+ #ifndef VK_F16
237
+ # define VK_F16 UNDEFINED_VK
238
+ #endif
239
+ #ifndef VK_F17
240
+ # define VK_F17 UNDEFINED_VK
241
+ #endif
242
+ #ifndef VK_F18
243
+ # define VK_F18 UNDEFINED_VK
244
+ #endif
245
+ #ifndef VK_F19
246
+ # define VK_F19 UNDEFINED_VK
247
+ #endif
248
+ #ifndef VK_F20
249
+ # define VK_F20 UNDEFINED_VK
250
+ #endif
251
+ #ifndef VK_F21
252
+ # define VK_F21 UNDEFINED_VK
253
+ #endif
254
+ #ifndef VK_F22
255
+ # define VK_F22 UNDEFINED_VK
256
+ #endif
257
+ #ifndef VK_F23
258
+ # define VK_F23 UNDEFINED_VK
259
+ #endif
260
+ #ifndef VK_F24
261
+ # define VK_F24 UNDEFINED_VK
262
+ #endif
263
+ #ifndef VK_NUMLOCK
264
+ # define VK_NUMLOCK UNDEFINED_VK
265
+ #endif
266
+ #ifndef VK_SCROLL
267
+ # define VK_SCROLL UNDEFINED_VK
268
+ #endif
269
+ #ifndef VK_OEM_NEC_EQUAL
270
+ # define VK_OEM_NEC_EQUAL UNDEFINED_VK
271
+ #endif
272
+ #ifndef VK_OEM_FJ_JISHO
273
+ # define VK_OEM_FJ_JISHO UNDEFINED_VK
274
+ #endif
275
+ #ifndef VK_OEM_FJ_MASSHOU
276
+ # define VK_OEM_FJ_MASSHOU UNDEFINED_VK
277
+ #endif
278
+ #ifndef VK_OEM_FJ_TOUROKU
279
+ # define VK_OEM_FJ_TOUROKU UNDEFINED_VK
280
+ #endif
281
+ #ifndef VK_OEM_FJ_LOYA
282
+ # define VK_OEM_FJ_LOYA UNDEFINED_VK
283
+ #endif
284
+ #ifndef VK_OEM_FJ_ROYA
285
+ # define VK_OEM_FJ_ROYA UNDEFINED_VK
286
+ #endif
287
+ #ifndef VK_LSHIFT
288
+ # define VK_LSHIFT UNDEFINED_VK
289
+ #endif
290
+ #ifndef VK_RSHIFT
291
+ # define VK_RSHIFT UNDEFINED_VK
292
+ #endif
293
+ #ifndef VK_LCONTROL
294
+ # define VK_LCONTROL UNDEFINED_VK
295
+ #endif
296
+ #ifndef VK_RCONTROL
297
+ # define VK_RCONTROL UNDEFINED_VK
298
+ #endif
299
+ #ifndef VK_LMENU
300
+ # define VK_LMENU UNDEFINED_VK
301
+ #endif
302
+ #ifndef VK_RMENU
303
+ # define VK_RMENU UNDEFINED_VK
304
+ #endif
305
+ #ifndef VK_BROWSER_BACK
306
+ # define VK_BROWSER_BACK UNDEFINED_VK
307
+ #endif
308
+ #ifndef VK_BROWSER_FORWARD
309
+ # define VK_BROWSER_FORWARD UNDEFINED_VK
310
+ #endif
311
+ #ifndef VK_BROWSER_REFRESH
312
+ # define VK_BROWSER_REFRESH UNDEFINED_VK
313
+ #endif
314
+ #ifndef VK_BROWSER_STOP
315
+ # define VK_BROWSER_STOP UNDEFINED_VK
316
+ #endif
317
+ #ifndef VK_BROWSER_SEARCH
318
+ # define VK_BROWSER_SEARCH UNDEFINED_VK
319
+ #endif
320
+ #ifndef VK_BROWSER_FAVORITES
321
+ # define VK_BROWSER_FAVORITES UNDEFINED_VK
322
+ #endif
323
+ #ifndef VK_BROWSER_HOME
324
+ # define VK_BROWSER_HOME UNDEFINED_VK
325
+ #endif
326
+ #ifndef VK_VOLUME_MUTE
327
+ # define VK_VOLUME_MUTE UNDEFINED_VK
328
+ #endif
329
+ #ifndef VK_VOLUME_DOWN
330
+ # define VK_VOLUME_DOWN UNDEFINED_VK
331
+ #endif
332
+ #ifndef VK_VOLUME_UP
333
+ # define VK_VOLUME_UP UNDEFINED_VK
334
+ #endif
335
+ #ifndef VK_MEDIA_NEXT_TRACK
336
+ # define VK_MEDIA_NEXT_TRACK UNDEFINED_VK
337
+ #endif
338
+ #ifndef VK_MEDIA_PREV_TRACK
339
+ # define VK_MEDIA_PREV_TRACK UNDEFINED_VK
340
+ #endif
341
+ #ifndef VK_MEDIA_STOP
342
+ # define VK_MEDIA_STOP UNDEFINED_VK
343
+ #endif
344
+ #ifndef VK_MEDIA_PLAY_PAUSE
345
+ # define VK_MEDIA_PLAY_PAUSE UNDEFINED_VK
346
+ #endif
347
+ #ifndef VK_LAUNCH_MAIL
348
+ # define VK_LAUNCH_MAIL UNDEFINED_VK
349
+ #endif
350
+ #ifndef VK_LAUNCH_MEDIA_SELECT
351
+ # define VK_LAUNCH_MEDIA_SELECT UNDEFINED_VK
352
+ #endif
353
+ #ifndef VK_LAUNCH_APP1
354
+ # define VK_LAUNCH_APP1 UNDEFINED_VK
355
+ #endif
356
+ #ifndef VK_LAUNCH_APP2
357
+ # define VK_LAUNCH_APP2 UNDEFINED_VK
358
+ #endif
359
+ #ifndef VK_OEM_1
360
+ # define VK_OEM_1 UNDEFINED_VK
361
+ #endif
362
+ #ifndef VK_OEM_PLUS
363
+ # define VK_OEM_PLUS UNDEFINED_VK
364
+ #endif
365
+ #ifndef VK_OEM_COMMA
366
+ # define VK_OEM_COMMA UNDEFINED_VK
367
+ #endif
368
+ #ifndef VK_OEM_MINUS
369
+ # define VK_OEM_MINUS UNDEFINED_VK
370
+ #endif
371
+ #ifndef VK_OEM_PERIOD
372
+ # define VK_OEM_PERIOD UNDEFINED_VK
373
+ #endif
374
+ #ifndef VK_OEM_2
375
+ # define VK_OEM_2 UNDEFINED_VK
376
+ #endif
377
+ #ifndef VK_OEM_3
378
+ # define VK_OEM_3 UNDEFINED_VK
379
+ #endif
380
+ #ifndef VK_OEM_4
381
+ # define VK_OEM_4 UNDEFINED_VK
382
+ #endif
383
+ #ifndef VK_OEM_5
384
+ # define VK_OEM_5 UNDEFINED_VK
385
+ #endif
386
+ #ifndef VK_OEM_6
387
+ # define VK_OEM_6 UNDEFINED_VK
388
+ #endif
389
+ #ifndef VK_OEM_7
390
+ # define VK_OEM_7 UNDEFINED_VK
391
+ #endif
392
+ #ifndef VK_OEM_8
393
+ # define VK_OEM_8 UNDEFINED_VK
394
+ #endif
395
+ #ifndef VK_OEM_AX
396
+ # define VK_OEM_AX UNDEFINED_VK
397
+ #endif
398
+ #ifndef VK_OEM_102
399
+ # define VK_OEM_102 UNDEFINED_VK
400
+ #endif
401
+ #ifndef VK_ICO_HELP
402
+ # define VK_ICO_HELP UNDEFINED_VK
403
+ #endif
404
+ #ifndef VK_ICO_00
405
+ # define VK_ICO_00 UNDEFINED_VK
406
+ #endif
407
+ #ifndef VK_PROCESSKEY
408
+ # define VK_PROCESSKEY UNDEFINED_VK
409
+ #endif
410
+ #ifndef VK_ICO_CLEAR
411
+ # define VK_ICO_CLEAR UNDEFINED_VK
412
+ #endif
413
+ #ifndef VK_PACKET
414
+ # define VK_PACKET UNDEFINED_VK
415
+ #endif
416
+ #ifndef VK_OEM_RESET
417
+ # define VK_OEM_RESET UNDEFINED_VK
418
+ #endif
419
+ #ifndef VK_OEM_JUMP
420
+ # define VK_OEM_JUMP UNDEFINED_VK
421
+ #endif
422
+ #ifndef VK_OEM_PA1
423
+ # define VK_OEM_PA1 UNDEFINED_VK
424
+ #endif
425
+ #ifndef VK_OEM_PA2
426
+ # define VK_OEM_PA2 UNDEFINED_VK
427
+ #endif
428
+ #ifndef VK_OEM_PA3
429
+ # define VK_OEM_PA3 UNDEFINED_VK
430
+ #endif
431
+ #ifndef VK_OEM_WSCTRL
432
+ # define VK_OEM_WSCTRL UNDEFINED_VK
433
+ #endif
434
+ #ifndef VK_OEM_CUSEL
435
+ # define VK_OEM_CUSEL UNDEFINED_VK
436
+ #endif
437
+ #ifndef VK_OEM_ATTN
438
+ # define VK_OEM_ATTN UNDEFINED_VK
439
+ #endif
440
+ #ifndef VK_OEM_FINISH
441
+ # define VK_OEM_FINISH UNDEFINED_VK
442
+ #endif
443
+ #ifndef VK_OEM_COPY
444
+ # define VK_OEM_COPY UNDEFINED_VK
445
+ #endif
446
+ #ifndef VK_OEM_AUTO
447
+ # define VK_OEM_AUTO UNDEFINED_VK
448
+ #endif
449
+ #ifndef VK_OEM_ENLW
450
+ # define VK_OEM_ENLW UNDEFINED_VK
451
+ #endif
452
+ #ifndef VK_OEM_BACKTAB
453
+ # define VK_OEM_BACKTAB UNDEFINED_VK
454
+ #endif
455
+ #ifndef VK_ATTN
456
+ # define VK_ATTN UNDEFINED_VK
457
+ #endif
458
+ #ifndef VK_CRSEL
459
+ # define VK_CRSEL UNDEFINED_VK
460
+ #endif
461
+ #ifndef VK_EXSEL
462
+ # define VK_EXSEL UNDEFINED_VK
463
+ #endif
464
+ #ifndef VK_EREOF
465
+ # define VK_EREOF UNDEFINED_VK
466
+ #endif
467
+ #ifndef VK_PLAY
468
+ # define VK_PLAY UNDEFINED_VK
469
+ #endif
470
+ #ifndef VK_ZOOM
471
+ # define VK_ZOOM UNDEFINED_VK
472
+ #endif
473
+ #ifndef VK_NONAME
474
+ # define VK_NONAME UNDEFINED_VK
475
+ #endif
476
+ #ifndef VK_PA1
477
+ # define VK_PA1 UNDEFINED_VK
478
+ #endif
479
+ #ifndef VK_OEM_CLEAR
480
+ # define VK_OEM_CLEAR UNDEFINED_VK
481
+ #endif
482
+ /* C code produced by gperf version 3.0.4 */
483
+ /* Command-line: gperf --ignore-case -E -C -P -p -j1 -i 1 -g -o -t -K ofs -N console_win32_vk -k'*' win32_vk.list */
484
+
485
+ #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
486
+ && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
487
+ && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
488
+ && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
489
+ && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
490
+ && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
491
+ && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
492
+ && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
493
+ && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
494
+ && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
495
+ && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
496
+ && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
497
+ && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
498
+ && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
499
+ && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
500
+ && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
501
+ && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
502
+ && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
503
+ && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
504
+ && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
505
+ && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
506
+ && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
507
+ && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
508
+ /* The character set is not based on ISO-646. */
509
+ error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
510
+ #endif
511
+
512
+ #line 1 "win32_vk.list"
513
+
514
+ struct vktable {short ofs; unsigned short vk;};
515
+ static const struct vktable *console_win32_vk(const char *, unsigned int);
516
+ #line 5 "win32_vk.list"
517
+ struct vktable;
518
+ /* maximum key range = 245, duplicates = 0 */
519
+
520
+ #ifndef GPERF_DOWNCASE
521
+ #define GPERF_DOWNCASE 1
522
+ static unsigned char gperf_downcase[256] =
523
+ {
524
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
525
+ 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
526
+ 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
527
+ 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
528
+ 60, 61, 62, 63, 64, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106,
529
+ 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121,
530
+ 122, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
531
+ 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
532
+ 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
533
+ 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
534
+ 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
535
+ 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
536
+ 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
537
+ 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209,
538
+ 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
539
+ 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
540
+ 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
541
+ 255
542
+ };
543
+ #endif
544
+
545
+ #ifndef GPERF_CASE_STRCMP
546
+ #define GPERF_CASE_STRCMP 1
547
+ static int
548
+ gperf_case_strcmp (s1, s2)
549
+ register const char *s1;
550
+ register const char *s2;
551
+ {
552
+ for (;;)
553
+ {
554
+ unsigned char c1 = gperf_downcase[(unsigned char)*s1++];
555
+ unsigned char c2 = gperf_downcase[(unsigned char)*s2++];
556
+ if (c1 != 0 && c1 == c2)
557
+ continue;
558
+ return (int)c1 - (int)c2;
559
+ }
560
+ }
561
+ #endif
562
+
563
+ #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)
564
+ inline
565
+ #elif defined(__GNUC__)
566
+ __inline
567
+ #endif
568
+ static unsigned int
569
+ hash (str, len)
570
+ register const char *str;
571
+ register unsigned int len;
572
+ {
573
+ static const unsigned short asso_values[] =
574
+ {
575
+ 257, 257, 257, 257, 257, 257, 257, 257, 257, 257,
576
+ 257, 257, 257, 257, 257, 257, 257, 257, 257, 257,
577
+ 257, 257, 257, 257, 257, 257, 257, 257, 257, 257,
578
+ 257, 257, 257, 257, 257, 257, 257, 257, 257, 257,
579
+ 257, 257, 257, 257, 257, 257, 257, 257, 51, 74,
580
+ 80, 116, 127, 124, 95, 140, 77, 53, 7, 3,
581
+ 257, 257, 257, 257, 257, 1, 11, 1, 55, 1,
582
+ 25, 84, 31, 33, 13, 16, 2, 28, 8, 1,
583
+ 6, 10, 1, 1, 3, 4, 45, 18, 73, 79,
584
+ 30, 257, 257, 257, 257, 5, 257, 1, 11, 1,
585
+ 55, 1, 25, 84, 31, 33, 13, 16, 2, 28,
586
+ 8, 1, 6, 10, 1, 1, 3, 4, 45, 18,
587
+ 73, 79, 30, 257, 257, 257, 257, 257, 257, 257,
588
+ 257, 257, 257, 257, 257, 257, 257, 257, 257, 257,
589
+ 257, 257, 257, 257, 257, 257, 257, 257, 257, 257,
590
+ 257, 257, 257, 257, 257, 257, 257, 257, 257, 257,
591
+ 257, 257, 257, 257, 257, 257, 257, 257, 257, 257,
592
+ 257, 257, 257, 257, 257, 257, 257, 257, 257, 257,
593
+ 257, 257, 257, 257, 257, 257, 257, 257, 257, 257,
594
+ 257, 257, 257, 257, 257, 257, 257, 257, 257, 257,
595
+ 257, 257, 257, 257, 257, 257, 257, 257, 257, 257,
596
+ 257, 257, 257, 257, 257, 257, 257, 257, 257, 257,
597
+ 257, 257, 257, 257, 257, 257, 257, 257, 257, 257,
598
+ 257, 257, 257, 257, 257, 257, 257, 257, 257, 257,
599
+ 257, 257, 257, 257, 257, 257, 257, 257, 257, 257,
600
+ 257, 257, 257, 257, 257, 257, 257, 257
601
+ };
602
+ register int hval = len;
603
+
604
+ switch (hval)
605
+ {
606
+ default:
607
+ hval += asso_values[(unsigned char)str[18]];
608
+ /*FALLTHROUGH*/
609
+ case 18:
610
+ hval += asso_values[(unsigned char)str[17]];
611
+ /*FALLTHROUGH*/
612
+ case 17:
613
+ hval += asso_values[(unsigned char)str[16]];
614
+ /*FALLTHROUGH*/
615
+ case 16:
616
+ hval += asso_values[(unsigned char)str[15]];
617
+ /*FALLTHROUGH*/
618
+ case 15:
619
+ hval += asso_values[(unsigned char)str[14]];
620
+ /*FALLTHROUGH*/
621
+ case 14:
622
+ hval += asso_values[(unsigned char)str[13]];
623
+ /*FALLTHROUGH*/
624
+ case 13:
625
+ hval += asso_values[(unsigned char)str[12]];
626
+ /*FALLTHROUGH*/
627
+ case 12:
628
+ hval += asso_values[(unsigned char)str[11]];
629
+ /*FALLTHROUGH*/
630
+ case 11:
631
+ hval += asso_values[(unsigned char)str[10]];
632
+ /*FALLTHROUGH*/
633
+ case 10:
634
+ hval += asso_values[(unsigned char)str[9]];
635
+ /*FALLTHROUGH*/
636
+ case 9:
637
+ hval += asso_values[(unsigned char)str[8]];
638
+ /*FALLTHROUGH*/
639
+ case 8:
640
+ hval += asso_values[(unsigned char)str[7]];
641
+ /*FALLTHROUGH*/
642
+ case 7:
643
+ hval += asso_values[(unsigned char)str[6]];
644
+ /*FALLTHROUGH*/
645
+ case 6:
646
+ hval += asso_values[(unsigned char)str[5]];
647
+ /*FALLTHROUGH*/
648
+ case 5:
649
+ hval += asso_values[(unsigned char)str[4]];
650
+ /*FALLTHROUGH*/
651
+ case 4:
652
+ hval += asso_values[(unsigned char)str[3]];
653
+ /*FALLTHROUGH*/
654
+ case 3:
655
+ hval += asso_values[(unsigned char)str[2]+2];
656
+ /*FALLTHROUGH*/
657
+ case 2:
658
+ hval += asso_values[(unsigned char)str[1]];
659
+ /*FALLTHROUGH*/
660
+ case 1:
661
+ hval += asso_values[(unsigned char)str[0]];
662
+ break;
663
+ }
664
+ return hval;
665
+ }
666
+
667
+ struct stringpool_t
668
+ {
669
+ char stringpool_str12[sizeof("UP")];
670
+ char stringpool_str13[sizeof("APPS")];
671
+ char stringpool_str14[sizeof("CRSEL")];
672
+ char stringpool_str15[sizeof("SPACE")];
673
+ char stringpool_str16[sizeof("SCROLL")];
674
+ char stringpool_str17[sizeof("ESCAPE")];
675
+ char stringpool_str18[sizeof("CANCEL")];
676
+ char stringpool_str19[sizeof("ACCEPT")];
677
+ char stringpool_str20[sizeof("SEPARATOR")];
678
+ char stringpool_str21[sizeof("SELECT")];
679
+ char stringpool_str22[sizeof("CONTROL")];
680
+ char stringpool_str23[sizeof("OEM_CLEAR")];
681
+ char stringpool_str24[sizeof("OEM_RESET")];
682
+ char stringpool_str25[sizeof("OEM_AUTO")];
683
+ char stringpool_str26[sizeof("OEM_CUSEL")];
684
+ char stringpool_str28[sizeof("KANA")];
685
+ char stringpool_str29[sizeof("OEM_PLUS")];
686
+ char stringpool_str30[sizeof("PRIOR")];
687
+ char stringpool_str31[sizeof("OEM_ATTN")];
688
+ char stringpool_str32[sizeof("PAUSE")];
689
+ char stringpool_str33[sizeof("BACK")];
690
+ char stringpool_str34[sizeof("PACKET")];
691
+ char stringpool_str35[sizeof("RCONTROL")];
692
+ char stringpool_str36[sizeof("LCONTROL")];
693
+ char stringpool_str37[sizeof("END")];
694
+ char stringpool_str38[sizeof("HOME")];
695
+ char stringpool_str39[sizeof("PRINT")];
696
+ char stringpool_str40[sizeof("NUMLOCK")];
697
+ char stringpool_str41[sizeof("LEFT")];
698
+ char stringpool_str42[sizeof("JUNJA")];
699
+ char stringpool_str43[sizeof("MENU")];
700
+ char stringpool_str44[sizeof("OEM_WSCTRL")];
701
+ char stringpool_str45[sizeof("OEM_ENLW")];
702
+ char stringpool_str46[sizeof("NEXT")];
703
+ char stringpool_str47[sizeof("RWIN")];
704
+ char stringpool_str48[sizeof("LWIN")];
705
+ char stringpool_str49[sizeof("CAPITAL")];
706
+ char stringpool_str50[sizeof("HELP")];
707
+ char stringpool_str51[sizeof("NONAME")];
708
+ char stringpool_str52[sizeof("RBUTTON")];
709
+ char stringpool_str53[sizeof("LBUTTON")];
710
+ char stringpool_str54[sizeof("OEM_NEC_EQUAL")];
711
+ char stringpool_str56[sizeof("INSERT")];
712
+ char stringpool_str57[sizeof("HANJA")];
713
+ char stringpool_str60[sizeof("SNAPSHOT")];
714
+ char stringpool_str61[sizeof("ATTN")];
715
+ char stringpool_str62[sizeof("TAB")];
716
+ char stringpool_str63[sizeof("OEM_BACKTAB")];
717
+ char stringpool_str64[sizeof("ICO_CLEAR")];
718
+ char stringpool_str65[sizeof("CONVERT")];
719
+ char stringpool_str66[sizeof("RETURN")];
720
+ char stringpool_str67[sizeof("OEM_JUMP")];
721
+ char stringpool_str71[sizeof("BROWSER_STOP")];
722
+ char stringpool_str72[sizeof("FINAL")];
723
+ char stringpool_str73[sizeof("ZOOM")];
724
+ char stringpool_str74[sizeof("KANJI")];
725
+ char stringpool_str75[sizeof("DELETE")];
726
+ char stringpool_str76[sizeof("OEM_COMMA")];
727
+ char stringpool_str77[sizeof("SUBTRACT")];
728
+ char stringpool_str79[sizeof("MBUTTON")];
729
+ char stringpool_str80[sizeof("F9")];
730
+ char stringpool_str81[sizeof("SHIFT")];
731
+ char stringpool_str82[sizeof("RSHIFT")];
732
+ char stringpool_str83[sizeof("LSHIFT")];
733
+ char stringpool_str84[sizeof("ADD")];
734
+ char stringpool_str85[sizeof("NONCONVERT")];
735
+ char stringpool_str86[sizeof("EXSEL")];
736
+ char stringpool_str87[sizeof("OEM_1")];
737
+ char stringpool_str88[sizeof("OEM_AX")];
738
+ char stringpool_str89[sizeof("BROWSER_BACK")];
739
+ char stringpool_str90[sizeof("OEM_8")];
740
+ char stringpool_str91[sizeof("OEM_MINUS")];
741
+ char stringpool_str92[sizeof("PLAY")];
742
+ char stringpool_str93[sizeof("OEM_2")];
743
+ char stringpool_str94[sizeof("CLEAR")];
744
+ char stringpool_str95[sizeof("OEM_FJ_TOUROKU")];
745
+ char stringpool_str96[sizeof("OEM_PA1")];
746
+ char stringpool_str97[sizeof("ICO_HELP")];
747
+ char stringpool_str98[sizeof("BROWSER_SEARCH")];
748
+ char stringpool_str99[sizeof("SLEEP")];
749
+ char stringpool_str101[sizeof("F1")];
750
+ char stringpool_str102[sizeof("OEM_PA2")];
751
+ char stringpool_str103[sizeof("OEM_COPY")];
752
+ char stringpool_str104[sizeof("F8")];
753
+ char stringpool_str105[sizeof("F19")];
754
+ char stringpool_str106[sizeof("RIGHT")];
755
+ char stringpool_str107[sizeof("F2")];
756
+ char stringpool_str108[sizeof("OEM_6")];
757
+ char stringpool_str109[sizeof("F18")];
758
+ char stringpool_str111[sizeof("VOLUME_UP")];
759
+ char stringpool_str114[sizeof("MEDIA_STOP")];
760
+ char stringpool_str115[sizeof("OEM_PERIOD")];
761
+ char stringpool_str117[sizeof("EREOF")];
762
+ char stringpool_str121[sizeof("BROWSER_HOME")];
763
+ char stringpool_str122[sizeof("F6")];
764
+ char stringpool_str124[sizeof("BROWSER_REFRESH")];
765
+ char stringpool_str126[sizeof("PA1")];
766
+ char stringpool_str127[sizeof("PROCESSKEY")];
767
+ char stringpool_str128[sizeof("DECIMAL")];
768
+ char stringpool_str129[sizeof("OEM_3")];
769
+ char stringpool_str130[sizeof("RMENU")];
770
+ char stringpool_str131[sizeof("LMENU")];
771
+ char stringpool_str132[sizeof("OEM_FJ_MASSHOU")];
772
+ char stringpool_str133[sizeof("NUMPAD0")];
773
+ char stringpool_str134[sizeof("HANGUL")];
774
+ char stringpool_str135[sizeof("NUMPAD9")];
775
+ char stringpool_str136[sizeof("HANGEUL")];
776
+ char stringpool_str137[sizeof("OEM_5")];
777
+ char stringpool_str138[sizeof("OEM_PA3")];
778
+ char stringpool_str139[sizeof("VOLUME_MUTE")];
779
+ char stringpool_str140[sizeof("OEM_4")];
780
+ char stringpool_str141[sizeof("LAUNCH_MAIL")];
781
+ char stringpool_str142[sizeof("OEM_FJ_JISHO")];
782
+ char stringpool_str143[sizeof("F3")];
783
+ char stringpool_str144[sizeof("OEM_FJ_ROYA")];
784
+ char stringpool_str145[sizeof("OEM_FJ_LOYA")];
785
+ char stringpool_str147[sizeof("DOWN")];
786
+ char stringpool_str149[sizeof("OEM_FINISH")];
787
+ char stringpool_str151[sizeof("F5")];
788
+ char stringpool_str153[sizeof("OEM_7")];
789
+ char stringpool_str154[sizeof("F4")];
790
+ char stringpool_str155[sizeof("F17")];
791
+ char stringpool_str156[sizeof("NUMPAD1")];
792
+ char stringpool_str157[sizeof("ICO_00")];
793
+ char stringpool_str159[sizeof("NUMPAD8")];
794
+ char stringpool_str162[sizeof("NUMPAD2")];
795
+ char stringpool_str164[sizeof("LAUNCH_APP1")];
796
+ char stringpool_str165[sizeof("BROWSER_FORWARD")];
797
+ char stringpool_str167[sizeof("F7")];
798
+ char stringpool_str170[sizeof("LAUNCH_APP2")];
799
+ char stringpool_str171[sizeof("MULTIPLY")];
800
+ char stringpool_str174[sizeof("EXECUTE")];
801
+ char stringpool_str176[sizeof("BROWSER_FAVORITES")];
802
+ char stringpool_str177[sizeof("NUMPAD6")];
803
+ char stringpool_str179[sizeof("F16")];
804
+ char stringpool_str182[sizeof("F10")];
805
+ char stringpool_str185[sizeof("VOLUME_DOWN")];
806
+ char stringpool_str188[sizeof("F20")];
807
+ char stringpool_str189[sizeof("MEDIA_PREV_TRACK")];
808
+ char stringpool_str191[sizeof("MODECHANGE")];
809
+ char stringpool_str197[sizeof("F14")];
810
+ char stringpool_str198[sizeof("NUMPAD3")];
811
+ char stringpool_str199[sizeof("XBUTTON1")];
812
+ char stringpool_str203[sizeof("F24")];
813
+ char stringpool_str205[sizeof("XBUTTON2")];
814
+ char stringpool_str206[sizeof("NUMPAD5")];
815
+ char stringpool_str209[sizeof("NUMPAD4")];
816
+ char stringpool_str215[sizeof("MEDIA_PLAY_PAUSE")];
817
+ char stringpool_str217[sizeof("LAUNCH_MEDIA_SELECT")];
818
+ char stringpool_str218[sizeof("F11")];
819
+ char stringpool_str220[sizeof("OEM_102")];
820
+ char stringpool_str221[sizeof("MEDIA_NEXT_TRACK")];
821
+ char stringpool_str222[sizeof("NUMPAD7")];
822
+ char stringpool_str224[sizeof("F21")];
823
+ char stringpool_str226[sizeof("F13")];
824
+ char stringpool_str229[sizeof("F12")];
825
+ char stringpool_str232[sizeof("F23")];
826
+ char stringpool_str235[sizeof("F22")];
827
+ char stringpool_str242[sizeof("F15")];
828
+ char stringpool_str256[sizeof("DIVIDE")];
829
+ };
830
+ static const struct stringpool_t stringpool_contents =
831
+ {
832
+ "UP",
833
+ "APPS",
834
+ "CRSEL",
835
+ "SPACE",
836
+ "SCROLL",
837
+ "ESCAPE",
838
+ "CANCEL",
839
+ "ACCEPT",
840
+ "SEPARATOR",
841
+ "SELECT",
842
+ "CONTROL",
843
+ "OEM_CLEAR",
844
+ "OEM_RESET",
845
+ "OEM_AUTO",
846
+ "OEM_CUSEL",
847
+ "KANA",
848
+ "OEM_PLUS",
849
+ "PRIOR",
850
+ "OEM_ATTN",
851
+ "PAUSE",
852
+ "BACK",
853
+ "PACKET",
854
+ "RCONTROL",
855
+ "LCONTROL",
856
+ "END",
857
+ "HOME",
858
+ "PRINT",
859
+ "NUMLOCK",
860
+ "LEFT",
861
+ "JUNJA",
862
+ "MENU",
863
+ "OEM_WSCTRL",
864
+ "OEM_ENLW",
865
+ "NEXT",
866
+ "RWIN",
867
+ "LWIN",
868
+ "CAPITAL",
869
+ "HELP",
870
+ "NONAME",
871
+ "RBUTTON",
872
+ "LBUTTON",
873
+ "OEM_NEC_EQUAL",
874
+ "INSERT",
875
+ "HANJA",
876
+ "SNAPSHOT",
877
+ "ATTN",
878
+ "TAB",
879
+ "OEM_BACKTAB",
880
+ "ICO_CLEAR",
881
+ "CONVERT",
882
+ "RETURN",
883
+ "OEM_JUMP",
884
+ "BROWSER_STOP",
885
+ "FINAL",
886
+ "ZOOM",
887
+ "KANJI",
888
+ "DELETE",
889
+ "OEM_COMMA",
890
+ "SUBTRACT",
891
+ "MBUTTON",
892
+ "F9",
893
+ "SHIFT",
894
+ "RSHIFT",
895
+ "LSHIFT",
896
+ "ADD",
897
+ "NONCONVERT",
898
+ "EXSEL",
899
+ "OEM_1",
900
+ "OEM_AX",
901
+ "BROWSER_BACK",
902
+ "OEM_8",
903
+ "OEM_MINUS",
904
+ "PLAY",
905
+ "OEM_2",
906
+ "CLEAR",
907
+ "OEM_FJ_TOUROKU",
908
+ "OEM_PA1",
909
+ "ICO_HELP",
910
+ "BROWSER_SEARCH",
911
+ "SLEEP",
912
+ "F1",
913
+ "OEM_PA2",
914
+ "OEM_COPY",
915
+ "F8",
916
+ "F19",
917
+ "RIGHT",
918
+ "F2",
919
+ "OEM_6",
920
+ "F18",
921
+ "VOLUME_UP",
922
+ "MEDIA_STOP",
923
+ "OEM_PERIOD",
924
+ "EREOF",
925
+ "BROWSER_HOME",
926
+ "F6",
927
+ "BROWSER_REFRESH",
928
+ "PA1",
929
+ "PROCESSKEY",
930
+ "DECIMAL",
931
+ "OEM_3",
932
+ "RMENU",
933
+ "LMENU",
934
+ "OEM_FJ_MASSHOU",
935
+ "NUMPAD0",
936
+ "HANGUL",
937
+ "NUMPAD9",
938
+ "HANGEUL",
939
+ "OEM_5",
940
+ "OEM_PA3",
941
+ "VOLUME_MUTE",
942
+ "OEM_4",
943
+ "LAUNCH_MAIL",
944
+ "OEM_FJ_JISHO",
945
+ "F3",
946
+ "OEM_FJ_ROYA",
947
+ "OEM_FJ_LOYA",
948
+ "DOWN",
949
+ "OEM_FINISH",
950
+ "F5",
951
+ "OEM_7",
952
+ "F4",
953
+ "F17",
954
+ "NUMPAD1",
955
+ "ICO_00",
956
+ "NUMPAD8",
957
+ "NUMPAD2",
958
+ "LAUNCH_APP1",
959
+ "BROWSER_FORWARD",
960
+ "F7",
961
+ "LAUNCH_APP2",
962
+ "MULTIPLY",
963
+ "EXECUTE",
964
+ "BROWSER_FAVORITES",
965
+ "NUMPAD6",
966
+ "F16",
967
+ "F10",
968
+ "VOLUME_DOWN",
969
+ "F20",
970
+ "MEDIA_PREV_TRACK",
971
+ "MODECHANGE",
972
+ "F14",
973
+ "NUMPAD3",
974
+ "XBUTTON1",
975
+ "F24",
976
+ "XBUTTON2",
977
+ "NUMPAD5",
978
+ "NUMPAD4",
979
+ "MEDIA_PLAY_PAUSE",
980
+ "LAUNCH_MEDIA_SELECT",
981
+ "F11",
982
+ "OEM_102",
983
+ "MEDIA_NEXT_TRACK",
984
+ "NUMPAD7",
985
+ "F21",
986
+ "F13",
987
+ "F12",
988
+ "F23",
989
+ "F22",
990
+ "F15",
991
+ "DIVIDE"
992
+ };
993
+ #define stringpool ((const char *) &stringpool_contents)
994
+ #ifdef __GNUC__
995
+ __inline
996
+ #if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
997
+ __attribute__ ((__gnu_inline__))
998
+ #endif
999
+ #endif
1000
+ const struct vktable *
1001
+ console_win32_vk (str, len)
1002
+ register const char *str;
1003
+ register unsigned int len;
1004
+ {
1005
+ enum
1006
+ {
1007
+ TOTAL_KEYWORDS = 160,
1008
+ MIN_WORD_LENGTH = 2,
1009
+ MAX_WORD_LENGTH = 19,
1010
+ MIN_HASH_VALUE = 12,
1011
+ MAX_HASH_VALUE = 256
1012
+ };
1013
+
1014
+ static const struct vktable wordlist[] =
1015
+ {
1016
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
1017
+ {-1}, {-1}, {-1},
1018
+ #line 40 "win32_vk.list"
1019
+ {offsetof(struct stringpool_t, stringpool_str12), VK_UP},
1020
+ #line 52 "win32_vk.list"
1021
+ {offsetof(struct stringpool_t, stringpool_str13), VK_APPS},
1022
+ #line 159 "win32_vk.list"
1023
+ {offsetof(struct stringpool_t, stringpool_str14), VK_CRSEL},
1024
+ #line 34 "win32_vk.list"
1025
+ {offsetof(struct stringpool_t, stringpool_str15), VK_SPACE},
1026
+ #line 95 "win32_vk.list"
1027
+ {offsetof(struct stringpool_t, stringpool_str16), VK_SCROLL},
1028
+ #line 29 "win32_vk.list"
1029
+ {offsetof(struct stringpool_t, stringpool_str17), VK_ESCAPE},
1030
+ #line 9 "win32_vk.list"
1031
+ {offsetof(struct stringpool_t, stringpool_str18), VK_CANCEL},
1032
+ #line 32 "win32_vk.list"
1033
+ {offsetof(struct stringpool_t, stringpool_str19), VK_ACCEPT},
1034
+ #line 66 "win32_vk.list"
1035
+ {offsetof(struct stringpool_t, stringpool_str20), VK_SEPARATOR},
1036
+ #line 43 "win32_vk.list"
1037
+ {offsetof(struct stringpool_t, stringpool_str21), VK_SELECT},
1038
+ #line 18 "win32_vk.list"
1039
+ {offsetof(struct stringpool_t, stringpool_str22), VK_CONTROL},
1040
+ #line 166 "win32_vk.list"
1041
+ {offsetof(struct stringpool_t, stringpool_str23), VK_OEM_CLEAR},
1042
+ #line 145 "win32_vk.list"
1043
+ {offsetof(struct stringpool_t, stringpool_str24), VK_OEM_RESET},
1044
+ #line 155 "win32_vk.list"
1045
+ {offsetof(struct stringpool_t, stringpool_str25), VK_OEM_AUTO},
1046
+ #line 151 "win32_vk.list"
1047
+ {offsetof(struct stringpool_t, stringpool_str26), VK_OEM_CUSEL},
1048
+ {-1},
1049
+ #line 22 "win32_vk.list"
1050
+ {offsetof(struct stringpool_t, stringpool_str28), VK_KANA},
1051
+ #line 127 "win32_vk.list"
1052
+ {offsetof(struct stringpool_t, stringpool_str29), VK_OEM_PLUS},
1053
+ #line 35 "win32_vk.list"
1054
+ {offsetof(struct stringpool_t, stringpool_str30), VK_PRIOR},
1055
+ #line 152 "win32_vk.list"
1056
+ {offsetof(struct stringpool_t, stringpool_str31), VK_OEM_ATTN},
1057
+ #line 20 "win32_vk.list"
1058
+ {offsetof(struct stringpool_t, stringpool_str32), VK_PAUSE},
1059
+ #line 13 "win32_vk.list"
1060
+ {offsetof(struct stringpool_t, stringpool_str33), VK_BACK},
1061
+ #line 144 "win32_vk.list"
1062
+ {offsetof(struct stringpool_t, stringpool_str34), VK_PACKET},
1063
+ #line 105 "win32_vk.list"
1064
+ {offsetof(struct stringpool_t, stringpool_str35), VK_RCONTROL},
1065
+ #line 104 "win32_vk.list"
1066
+ {offsetof(struct stringpool_t, stringpool_str36), VK_LCONTROL},
1067
+ #line 37 "win32_vk.list"
1068
+ {offsetof(struct stringpool_t, stringpool_str37), VK_END},
1069
+ #line 38 "win32_vk.list"
1070
+ {offsetof(struct stringpool_t, stringpool_str38), VK_HOME},
1071
+ #line 44 "win32_vk.list"
1072
+ {offsetof(struct stringpool_t, stringpool_str39), VK_PRINT},
1073
+ #line 94 "win32_vk.list"
1074
+ {offsetof(struct stringpool_t, stringpool_str40), VK_NUMLOCK},
1075
+ #line 39 "win32_vk.list"
1076
+ {offsetof(struct stringpool_t, stringpool_str41), VK_LEFT},
1077
+ #line 25 "win32_vk.list"
1078
+ {offsetof(struct stringpool_t, stringpool_str42), VK_JUNJA},
1079
+ #line 19 "win32_vk.list"
1080
+ {offsetof(struct stringpool_t, stringpool_str43), VK_MENU},
1081
+ #line 150 "win32_vk.list"
1082
+ {offsetof(struct stringpool_t, stringpool_str44), VK_OEM_WSCTRL},
1083
+ #line 156 "win32_vk.list"
1084
+ {offsetof(struct stringpool_t, stringpool_str45), VK_OEM_ENLW},
1085
+ #line 36 "win32_vk.list"
1086
+ {offsetof(struct stringpool_t, stringpool_str46), VK_NEXT},
1087
+ #line 51 "win32_vk.list"
1088
+ {offsetof(struct stringpool_t, stringpool_str47), VK_RWIN},
1089
+ #line 50 "win32_vk.list"
1090
+ {offsetof(struct stringpool_t, stringpool_str48), VK_LWIN},
1091
+ #line 21 "win32_vk.list"
1092
+ {offsetof(struct stringpool_t, stringpool_str49), VK_CAPITAL},
1093
+ #line 49 "win32_vk.list"
1094
+ {offsetof(struct stringpool_t, stringpool_str50), VK_HELP},
1095
+ #line 164 "win32_vk.list"
1096
+ {offsetof(struct stringpool_t, stringpool_str51), VK_NONAME},
1097
+ #line 8 "win32_vk.list"
1098
+ {offsetof(struct stringpool_t, stringpool_str52), VK_RBUTTON},
1099
+ #line 7 "win32_vk.list"
1100
+ {offsetof(struct stringpool_t, stringpool_str53), VK_LBUTTON},
1101
+ #line 96 "win32_vk.list"
1102
+ {offsetof(struct stringpool_t, stringpool_str54), VK_OEM_NEC_EQUAL},
1103
+ {-1},
1104
+ #line 47 "win32_vk.list"
1105
+ {offsetof(struct stringpool_t, stringpool_str56), VK_INSERT},
1106
+ #line 27 "win32_vk.list"
1107
+ {offsetof(struct stringpool_t, stringpool_str57), VK_HANJA},
1108
+ {-1}, {-1},
1109
+ #line 46 "win32_vk.list"
1110
+ {offsetof(struct stringpool_t, stringpool_str60), VK_SNAPSHOT},
1111
+ #line 158 "win32_vk.list"
1112
+ {offsetof(struct stringpool_t, stringpool_str61), VK_ATTN},
1113
+ #line 14 "win32_vk.list"
1114
+ {offsetof(struct stringpool_t, stringpool_str62), VK_TAB},
1115
+ #line 157 "win32_vk.list"
1116
+ {offsetof(struct stringpool_t, stringpool_str63), VK_OEM_BACKTAB},
1117
+ #line 143 "win32_vk.list"
1118
+ {offsetof(struct stringpool_t, stringpool_str64), VK_ICO_CLEAR},
1119
+ #line 30 "win32_vk.list"
1120
+ {offsetof(struct stringpool_t, stringpool_str65), VK_CONVERT},
1121
+ #line 16 "win32_vk.list"
1122
+ {offsetof(struct stringpool_t, stringpool_str66), VK_RETURN},
1123
+ #line 146 "win32_vk.list"
1124
+ {offsetof(struct stringpool_t, stringpool_str67), VK_OEM_JUMP},
1125
+ {-1}, {-1}, {-1},
1126
+ #line 111 "win32_vk.list"
1127
+ {offsetof(struct stringpool_t, stringpool_str71), VK_BROWSER_STOP},
1128
+ #line 26 "win32_vk.list"
1129
+ {offsetof(struct stringpool_t, stringpool_str72), VK_FINAL},
1130
+ #line 163 "win32_vk.list"
1131
+ {offsetof(struct stringpool_t, stringpool_str73), VK_ZOOM},
1132
+ #line 28 "win32_vk.list"
1133
+ {offsetof(struct stringpool_t, stringpool_str74), VK_KANJI},
1134
+ #line 48 "win32_vk.list"
1135
+ {offsetof(struct stringpool_t, stringpool_str75), VK_DELETE},
1136
+ #line 128 "win32_vk.list"
1137
+ {offsetof(struct stringpool_t, stringpool_str76), VK_OEM_COMMA},
1138
+ #line 67 "win32_vk.list"
1139
+ {offsetof(struct stringpool_t, stringpool_str77), VK_SUBTRACT},
1140
+ {-1},
1141
+ #line 10 "win32_vk.list"
1142
+ {offsetof(struct stringpool_t, stringpool_str79), VK_MBUTTON},
1143
+ #line 78 "win32_vk.list"
1144
+ {offsetof(struct stringpool_t, stringpool_str80), VK_F9},
1145
+ #line 17 "win32_vk.list"
1146
+ {offsetof(struct stringpool_t, stringpool_str81), VK_SHIFT},
1147
+ #line 103 "win32_vk.list"
1148
+ {offsetof(struct stringpool_t, stringpool_str82), VK_RSHIFT},
1149
+ #line 102 "win32_vk.list"
1150
+ {offsetof(struct stringpool_t, stringpool_str83), VK_LSHIFT},
1151
+ #line 65 "win32_vk.list"
1152
+ {offsetof(struct stringpool_t, stringpool_str84), VK_ADD},
1153
+ #line 31 "win32_vk.list"
1154
+ {offsetof(struct stringpool_t, stringpool_str85), VK_NONCONVERT},
1155
+ #line 160 "win32_vk.list"
1156
+ {offsetof(struct stringpool_t, stringpool_str86), VK_EXSEL},
1157
+ #line 126 "win32_vk.list"
1158
+ {offsetof(struct stringpool_t, stringpool_str87), VK_OEM_1},
1159
+ #line 138 "win32_vk.list"
1160
+ {offsetof(struct stringpool_t, stringpool_str88), VK_OEM_AX},
1161
+ #line 108 "win32_vk.list"
1162
+ {offsetof(struct stringpool_t, stringpool_str89), VK_BROWSER_BACK},
1163
+ #line 137 "win32_vk.list"
1164
+ {offsetof(struct stringpool_t, stringpool_str90), VK_OEM_8},
1165
+ #line 129 "win32_vk.list"
1166
+ {offsetof(struct stringpool_t, stringpool_str91), VK_OEM_MINUS},
1167
+ #line 162 "win32_vk.list"
1168
+ {offsetof(struct stringpool_t, stringpool_str92), VK_PLAY},
1169
+ #line 131 "win32_vk.list"
1170
+ {offsetof(struct stringpool_t, stringpool_str93), VK_OEM_2},
1171
+ #line 15 "win32_vk.list"
1172
+ {offsetof(struct stringpool_t, stringpool_str94), VK_CLEAR},
1173
+ #line 99 "win32_vk.list"
1174
+ {offsetof(struct stringpool_t, stringpool_str95), VK_OEM_FJ_TOUROKU},
1175
+ #line 147 "win32_vk.list"
1176
+ {offsetof(struct stringpool_t, stringpool_str96), VK_OEM_PA1},
1177
+ #line 140 "win32_vk.list"
1178
+ {offsetof(struct stringpool_t, stringpool_str97), VK_ICO_HELP},
1179
+ #line 112 "win32_vk.list"
1180
+ {offsetof(struct stringpool_t, stringpool_str98), VK_BROWSER_SEARCH},
1181
+ #line 53 "win32_vk.list"
1182
+ {offsetof(struct stringpool_t, stringpool_str99), VK_SLEEP},
1183
+ {-1},
1184
+ #line 70 "win32_vk.list"
1185
+ {offsetof(struct stringpool_t, stringpool_str101), VK_F1},
1186
+ #line 148 "win32_vk.list"
1187
+ {offsetof(struct stringpool_t, stringpool_str102), VK_OEM_PA2},
1188
+ #line 154 "win32_vk.list"
1189
+ {offsetof(struct stringpool_t, stringpool_str103), VK_OEM_COPY},
1190
+ #line 77 "win32_vk.list"
1191
+ {offsetof(struct stringpool_t, stringpool_str104), VK_F8},
1192
+ #line 88 "win32_vk.list"
1193
+ {offsetof(struct stringpool_t, stringpool_str105), VK_F19},
1194
+ #line 41 "win32_vk.list"
1195
+ {offsetof(struct stringpool_t, stringpool_str106), VK_RIGHT},
1196
+ #line 71 "win32_vk.list"
1197
+ {offsetof(struct stringpool_t, stringpool_str107), VK_F2},
1198
+ #line 135 "win32_vk.list"
1199
+ {offsetof(struct stringpool_t, stringpool_str108), VK_OEM_6},
1200
+ #line 87 "win32_vk.list"
1201
+ {offsetof(struct stringpool_t, stringpool_str109), VK_F18},
1202
+ {-1},
1203
+ #line 117 "win32_vk.list"
1204
+ {offsetof(struct stringpool_t, stringpool_str111), VK_VOLUME_UP},
1205
+ {-1}, {-1},
1206
+ #line 120 "win32_vk.list"
1207
+ {offsetof(struct stringpool_t, stringpool_str114), VK_MEDIA_STOP},
1208
+ #line 130 "win32_vk.list"
1209
+ {offsetof(struct stringpool_t, stringpool_str115), VK_OEM_PERIOD},
1210
+ {-1},
1211
+ #line 161 "win32_vk.list"
1212
+ {offsetof(struct stringpool_t, stringpool_str117), VK_EREOF},
1213
+ {-1}, {-1}, {-1},
1214
+ #line 114 "win32_vk.list"
1215
+ {offsetof(struct stringpool_t, stringpool_str121), VK_BROWSER_HOME},
1216
+ #line 75 "win32_vk.list"
1217
+ {offsetof(struct stringpool_t, stringpool_str122), VK_F6},
1218
+ {-1},
1219
+ #line 110 "win32_vk.list"
1220
+ {offsetof(struct stringpool_t, stringpool_str124), VK_BROWSER_REFRESH},
1221
+ {-1},
1222
+ #line 165 "win32_vk.list"
1223
+ {offsetof(struct stringpool_t, stringpool_str126), VK_PA1},
1224
+ #line 142 "win32_vk.list"
1225
+ {offsetof(struct stringpool_t, stringpool_str127), VK_PROCESSKEY},
1226
+ #line 68 "win32_vk.list"
1227
+ {offsetof(struct stringpool_t, stringpool_str128), VK_DECIMAL},
1228
+ #line 132 "win32_vk.list"
1229
+ {offsetof(struct stringpool_t, stringpool_str129), VK_OEM_3},
1230
+ #line 107 "win32_vk.list"
1231
+ {offsetof(struct stringpool_t, stringpool_str130), VK_RMENU},
1232
+ #line 106 "win32_vk.list"
1233
+ {offsetof(struct stringpool_t, stringpool_str131), VK_LMENU},
1234
+ #line 98 "win32_vk.list"
1235
+ {offsetof(struct stringpool_t, stringpool_str132), VK_OEM_FJ_MASSHOU},
1236
+ #line 54 "win32_vk.list"
1237
+ {offsetof(struct stringpool_t, stringpool_str133), VK_NUMPAD0},
1238
+ #line 24 "win32_vk.list"
1239
+ {offsetof(struct stringpool_t, stringpool_str134), VK_HANGUL},
1240
+ #line 63 "win32_vk.list"
1241
+ {offsetof(struct stringpool_t, stringpool_str135), VK_NUMPAD9},
1242
+ #line 23 "win32_vk.list"
1243
+ {offsetof(struct stringpool_t, stringpool_str136), VK_HANGEUL},
1244
+ #line 134 "win32_vk.list"
1245
+ {offsetof(struct stringpool_t, stringpool_str137), VK_OEM_5},
1246
+ #line 149 "win32_vk.list"
1247
+ {offsetof(struct stringpool_t, stringpool_str138), VK_OEM_PA3},
1248
+ #line 115 "win32_vk.list"
1249
+ {offsetof(struct stringpool_t, stringpool_str139), VK_VOLUME_MUTE},
1250
+ #line 133 "win32_vk.list"
1251
+ {offsetof(struct stringpool_t, stringpool_str140), VK_OEM_4},
1252
+ #line 122 "win32_vk.list"
1253
+ {offsetof(struct stringpool_t, stringpool_str141), VK_LAUNCH_MAIL},
1254
+ #line 97 "win32_vk.list"
1255
+ {offsetof(struct stringpool_t, stringpool_str142), VK_OEM_FJ_JISHO},
1256
+ #line 72 "win32_vk.list"
1257
+ {offsetof(struct stringpool_t, stringpool_str143), VK_F3},
1258
+ #line 101 "win32_vk.list"
1259
+ {offsetof(struct stringpool_t, stringpool_str144), VK_OEM_FJ_ROYA},
1260
+ #line 100 "win32_vk.list"
1261
+ {offsetof(struct stringpool_t, stringpool_str145), VK_OEM_FJ_LOYA},
1262
+ {-1},
1263
+ #line 42 "win32_vk.list"
1264
+ {offsetof(struct stringpool_t, stringpool_str147), VK_DOWN},
1265
+ {-1},
1266
+ #line 153 "win32_vk.list"
1267
+ {offsetof(struct stringpool_t, stringpool_str149), VK_OEM_FINISH},
1268
+ {-1},
1269
+ #line 74 "win32_vk.list"
1270
+ {offsetof(struct stringpool_t, stringpool_str151), VK_F5},
1271
+ {-1},
1272
+ #line 136 "win32_vk.list"
1273
+ {offsetof(struct stringpool_t, stringpool_str153), VK_OEM_7},
1274
+ #line 73 "win32_vk.list"
1275
+ {offsetof(struct stringpool_t, stringpool_str154), VK_F4},
1276
+ #line 86 "win32_vk.list"
1277
+ {offsetof(struct stringpool_t, stringpool_str155), VK_F17},
1278
+ #line 55 "win32_vk.list"
1279
+ {offsetof(struct stringpool_t, stringpool_str156), VK_NUMPAD1},
1280
+ #line 141 "win32_vk.list"
1281
+ {offsetof(struct stringpool_t, stringpool_str157), VK_ICO_00},
1282
+ {-1},
1283
+ #line 62 "win32_vk.list"
1284
+ {offsetof(struct stringpool_t, stringpool_str159), VK_NUMPAD8},
1285
+ {-1}, {-1},
1286
+ #line 56 "win32_vk.list"
1287
+ {offsetof(struct stringpool_t, stringpool_str162), VK_NUMPAD2},
1288
+ {-1},
1289
+ #line 124 "win32_vk.list"
1290
+ {offsetof(struct stringpool_t, stringpool_str164), VK_LAUNCH_APP1},
1291
+ #line 109 "win32_vk.list"
1292
+ {offsetof(struct stringpool_t, stringpool_str165), VK_BROWSER_FORWARD},
1293
+ {-1},
1294
+ #line 76 "win32_vk.list"
1295
+ {offsetof(struct stringpool_t, stringpool_str167), VK_F7},
1296
+ {-1}, {-1},
1297
+ #line 125 "win32_vk.list"
1298
+ {offsetof(struct stringpool_t, stringpool_str170), VK_LAUNCH_APP2},
1299
+ #line 64 "win32_vk.list"
1300
+ {offsetof(struct stringpool_t, stringpool_str171), VK_MULTIPLY},
1301
+ {-1}, {-1},
1302
+ #line 45 "win32_vk.list"
1303
+ {offsetof(struct stringpool_t, stringpool_str174), VK_EXECUTE},
1304
+ {-1},
1305
+ #line 113 "win32_vk.list"
1306
+ {offsetof(struct stringpool_t, stringpool_str176), VK_BROWSER_FAVORITES},
1307
+ #line 60 "win32_vk.list"
1308
+ {offsetof(struct stringpool_t, stringpool_str177), VK_NUMPAD6},
1309
+ {-1},
1310
+ #line 85 "win32_vk.list"
1311
+ {offsetof(struct stringpool_t, stringpool_str179), VK_F16},
1312
+ {-1}, {-1},
1313
+ #line 79 "win32_vk.list"
1314
+ {offsetof(struct stringpool_t, stringpool_str182), VK_F10},
1315
+ {-1}, {-1},
1316
+ #line 116 "win32_vk.list"
1317
+ {offsetof(struct stringpool_t, stringpool_str185), VK_VOLUME_DOWN},
1318
+ {-1}, {-1},
1319
+ #line 89 "win32_vk.list"
1320
+ {offsetof(struct stringpool_t, stringpool_str188), VK_F20},
1321
+ #line 119 "win32_vk.list"
1322
+ {offsetof(struct stringpool_t, stringpool_str189), VK_MEDIA_PREV_TRACK},
1323
+ {-1},
1324
+ #line 33 "win32_vk.list"
1325
+ {offsetof(struct stringpool_t, stringpool_str191), VK_MODECHANGE},
1326
+ {-1}, {-1}, {-1}, {-1}, {-1},
1327
+ #line 83 "win32_vk.list"
1328
+ {offsetof(struct stringpool_t, stringpool_str197), VK_F14},
1329
+ #line 57 "win32_vk.list"
1330
+ {offsetof(struct stringpool_t, stringpool_str198), VK_NUMPAD3},
1331
+ #line 11 "win32_vk.list"
1332
+ {offsetof(struct stringpool_t, stringpool_str199), VK_XBUTTON1},
1333
+ {-1}, {-1}, {-1},
1334
+ #line 93 "win32_vk.list"
1335
+ {offsetof(struct stringpool_t, stringpool_str203), VK_F24},
1336
+ {-1},
1337
+ #line 12 "win32_vk.list"
1338
+ {offsetof(struct stringpool_t, stringpool_str205), VK_XBUTTON2},
1339
+ #line 59 "win32_vk.list"
1340
+ {offsetof(struct stringpool_t, stringpool_str206), VK_NUMPAD5},
1341
+ {-1}, {-1},
1342
+ #line 58 "win32_vk.list"
1343
+ {offsetof(struct stringpool_t, stringpool_str209), VK_NUMPAD4},
1344
+ {-1}, {-1}, {-1}, {-1}, {-1},
1345
+ #line 121 "win32_vk.list"
1346
+ {offsetof(struct stringpool_t, stringpool_str215), VK_MEDIA_PLAY_PAUSE},
1347
+ {-1},
1348
+ #line 123 "win32_vk.list"
1349
+ {offsetof(struct stringpool_t, stringpool_str217), VK_LAUNCH_MEDIA_SELECT},
1350
+ #line 80 "win32_vk.list"
1351
+ {offsetof(struct stringpool_t, stringpool_str218), VK_F11},
1352
+ {-1},
1353
+ #line 139 "win32_vk.list"
1354
+ {offsetof(struct stringpool_t, stringpool_str220), VK_OEM_102},
1355
+ #line 118 "win32_vk.list"
1356
+ {offsetof(struct stringpool_t, stringpool_str221), VK_MEDIA_NEXT_TRACK},
1357
+ #line 61 "win32_vk.list"
1358
+ {offsetof(struct stringpool_t, stringpool_str222), VK_NUMPAD7},
1359
+ {-1},
1360
+ #line 90 "win32_vk.list"
1361
+ {offsetof(struct stringpool_t, stringpool_str224), VK_F21},
1362
+ {-1},
1363
+ #line 82 "win32_vk.list"
1364
+ {offsetof(struct stringpool_t, stringpool_str226), VK_F13},
1365
+ {-1}, {-1},
1366
+ #line 81 "win32_vk.list"
1367
+ {offsetof(struct stringpool_t, stringpool_str229), VK_F12},
1368
+ {-1}, {-1},
1369
+ #line 92 "win32_vk.list"
1370
+ {offsetof(struct stringpool_t, stringpool_str232), VK_F23},
1371
+ {-1}, {-1},
1372
+ #line 91 "win32_vk.list"
1373
+ {offsetof(struct stringpool_t, stringpool_str235), VK_F22},
1374
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
1375
+ #line 84 "win32_vk.list"
1376
+ {offsetof(struct stringpool_t, stringpool_str242), VK_F15},
1377
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
1378
+ {-1}, {-1}, {-1}, {-1},
1379
+ #line 69 "win32_vk.list"
1380
+ {offsetof(struct stringpool_t, stringpool_str256), VK_DIVIDE}
1381
+ };
1382
+
1383
+ if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
1384
+ {
1385
+ register int key = hash (str, len);
1386
+
1387
+ if (key <= MAX_HASH_VALUE && key >= 0)
1388
+ {
1389
+ register int o = wordlist[key].ofs;
1390
+ if (o >= 0)
1391
+ {
1392
+ register const char *s = o + stringpool;
1393
+
1394
+ if ((((unsigned char)*str ^ (unsigned char)*s) & ~32) == 0 && !gperf_case_strcmp (str, s))
1395
+ return &wordlist[key];
1396
+ }
1397
+ }
1398
+ }
1399
+ return 0;
1400
+ }