Add missing common.c.
This commit is contained in:
parent
1173a9a265
commit
e586f7c61f
1 changed files with 34 additions and 0 deletions
34
common.c
Normal file
34
common.c
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
|
const char advent_to_ascii[] = {
|
||||||
|
'\x00', ' ', '!', '\"', '\'', '(', ')', '*', '+', ',',
|
||||||
|
'-', '.', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
|
||||||
|
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
|
||||||
|
'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b',
|
||||||
|
'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
|
||||||
|
'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
|
||||||
|
'w', 'x', 'y', 'z', '%', '0', '1', '2', '3', '4',
|
||||||
|
'5', '6', '7', '8', '9', '\x00', '\x01', '\x02', '\x03', '\x04',
|
||||||
|
'\x05', '\x06', '\x07', '\x08', '\x00', '\x00', '\x0b', '\x0c', '\r', '\x0e',
|
||||||
|
'\x0f', '\x10', '\x11', '\x12', '\x13', '\x14', '\x15', '\x16', '\x17', '\x18',
|
||||||
|
'\x19', '\x1a', '\x1b', '\x1c', '\x1d', '\x1e', '\x1f', '#', '$', '&',
|
||||||
|
'/', ':', ';', '<', '=', '>', '?', '@', '[', '\\',
|
||||||
|
']', '^', '_', '`', '{', '|', '}', '~', '\x00',
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Rendered from the now-gone MPINIT() function */
|
||||||
|
const char ascii_to_advent[] = {
|
||||||
|
'\x00', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
|
||||||
|
'\x00', '\x00', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\',
|
||||||
|
']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f',
|
||||||
|
'g', 'h', 'i', '\x00', '\x01', '\x02', 'j', 'k', '?', 'l',
|
||||||
|
'\x03', '\x04', '\x05', '\x06', '\x07', '\x08', '\t', '\n', 'm', '@',
|
||||||
|
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'n',
|
||||||
|
'o', 'p', 'q', 'r', 's', 't', '\x0b', '\x0c', '\r', '\x0e',
|
||||||
|
'\x0f', '\x10', '\x11', '\x12', '\x13', '\x14', '\x15', '\x16', '\x17', '\x18',
|
||||||
|
'\x19', '\x1a', '\x1b', '\x1c', '\x1d', '\x1e', '\x1f', ' ', '!', '\"',
|
||||||
|
'#', '$', 'u', 'v', 'w', 'x', 'y', 'z', '%', '&',
|
||||||
|
'\'', '(', ')', '*', '+', ',', '-', '.', '/', '0',
|
||||||
|
'1', '2', '3', '4', '5', '6', '7', '8', '9', ':',
|
||||||
|
';', '<', '=', '>', '{', '|', '}', '~', 'S',
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue