Add missing common.c.
[open-adventure.git] / common.c
1 #include "common.h"
2
3 const char advent_to_ascii[] = {
4   '\x00', ' ', '!', '\"', '\'', '(', ')', '*', '+', ',', 
5   '-', '.', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 
6   'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 
7   'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 
8   'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 
9   'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 
10   'w', 'x', 'y', 'z', '%', '0', '1', '2', '3', '4', 
11   '5', '6', '7', '8', '9', '\x00', '\x01', '\x02', '\x03', '\x04', 
12   '\x05', '\x06', '\x07', '\x08', '\x00', '\x00', '\x0b', '\x0c', '\r', '\x0e', 
13   '\x0f', '\x10', '\x11', '\x12', '\x13', '\x14', '\x15', '\x16', '\x17', '\x18', 
14   '\x19', '\x1a', '\x1b', '\x1c', '\x1d', '\x1e', '\x1f', '#', '$', '&', 
15   '/', ':', ';', '<', '=', '>', '?', '@', '[', '\\', 
16   ']', '^', '_', '`', '{', '|', '}', '~', '\x00',
17 };
18
19 /* Rendered from the now-gone MPINIT() function */
20 const char ascii_to_advent[] = {
21   '\x00', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 
22   '\x00', '\x00', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', 
23   ']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 
24   'g', 'h', 'i', '\x00', '\x01', '\x02', 'j', 'k', '?', 'l', 
25   '\x03', '\x04', '\x05', '\x06', '\x07', '\x08', '\t', '\n', 'm', '@', 
26   'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'n', 
27   'o', 'p', 'q', 'r', 's', 't', '\x0b', '\x0c', '\r', '\x0e', 
28   '\x0f', '\x10', '\x11', '\x12', '\x13', '\x14', '\x15', '\x16', '\x17', '\x18', 
29   '\x19', '\x1a', '\x1b', '\x1c', '\x1d', '\x1e', '\x1f', ' ', '!', '\"', 
30   '#', '$', 'u', 'v', 'w', 'x', 'y', 'z', '%', '&', 
31   '\'', '(', ')', '*', '+', ',', '-', '.', '/', '0', 
32   '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', 
33   ';', '<', '=', '>', '{', '|', '}', '~', 'S',
34 };