From e586f7c61fd53ddc199ca2052fdf8ee0aba8caf2 Mon Sep 17 00:00:00 2001 From: "Jason S. Ninneman" Date: Sat, 10 Jun 2017 13:52:50 -0700 Subject: [PATCH] Add missing common.c. --- common.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 common.c diff --git a/common.c b/common.c new file mode 100644 index 0000000..eef33c7 --- /dev/null +++ b/common.c @@ -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', +}; -- 2.31.1