summaryrefslogtreecommitdiff
path: root/src/h/esctab.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/h/esctab.h')
-rw-r--r--src/h/esctab.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/h/esctab.h b/src/h/esctab.h
new file mode 100644
index 0000000..0098852
--- /dev/null
+++ b/src/h/esctab.h
@@ -0,0 +1,38 @@
+/*
+ * esctab.h - table for translating single-char escapes in string literals.
+ */
+
+static unsigned char esctab[] = {
+ 000, 001, 002, 003, 004, 005, 006, 007, /* NUL-BEL */
+ 010, 011, 012, 013, 014, 015, 016, 017, /* BS -SI */
+ 020, 021, 022, 023, 024, 025, 026, 027, /* DLE-ETB */
+ 030, 031, 032, 033, 034, 035, 036, 037, /* CAN-US */
+ ' ', '!', '"', '#', '$', '%', '&', '\'', /* !"#$%&' */
+ '(', ')', '*', '+', ',', '-', '.', '/', /* ()*+,-./ */
+ 000, 001, 002, 003, 004, 005, 006, 007, /* 01234567 */
+ 010, 011, ':', ';', '<', '=', '>', '?', /* 89:;<=>? */
+ '@', 'A', '\b', 'C', 0177, 033, 014, 'G', /* @ABCDEFG */
+ 'H', 'I', 'J', 'K', '\n', 'M', '\n', 'O', /* HIJKLMNO */
+ 'P', 'Q', '\r', 'S', '\t', 'U', 013, 'W', /* PQRSTUVW */
+ 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', /* XYZ[\]^_ */
+ '`', 'a', '\b', 'c', 0177, 033, 014, 'g', /* `abcdefg */
+ 'h', 'i', 'j', 'k', '\n', 'm', '\n', 'o', /* hijklmno */
+ 'p', 'q', '\r', 's', '\t', 'u', 013, 'w', /* pqrstuvw */
+ 'x', 'y', 'z', '{', '|', '}', '~', 0177, /* xyz{|}~ */
+ 0200, 0201, 0202, 0203, 0204, 0205, 0206, 0207,
+ 0210, 0211, 0212, 0213, 0214, 0215, 0216, 0217,
+ 0220, 0221, 0222, 0223, 0224, 0225, 0226, 0227,
+ 0230, 0231, 0232, 0233, 0234, 0235, 0236, 0237,
+ 0240, 0241, 0242, 0243, 0244, 0245, 0246, 0247,
+ 0250, 0251, 0252, 0253, 0254, 0255, 0256, 0257,
+ 0260, 0261, 0262, 0263, 0264, 0265, 0266, 0267,
+ 0270, 0271, 0272, 0273, 0274, 0275, 0276, 0277,
+ 0300, 0301, 0302, 0303, 0304, 0305, 0306, 0307,
+ 0310, 0311, 0312, 0313, 0314, 0315, 0316, 0317,
+ 0320, 0321, 0322, 0323, 0324, 0325, 0326, 0327,
+ 0330, 0331, 0332, 0333, 0334, 0335, 0336, 0337,
+ 0340, 0341, 0342, 0343, 0344, 0345, 0346, 0347,
+ 0350, 0351, 0352, 0353, 0354, 0355, 0356, 0357,
+ 0360, 0361, 0362, 0363, 0364, 0365, 0366, 0367,
+ 0370, 0371, 0372, 0373, 0374, 0375, 0376, 0377,
+ };