Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

regenerate table

  • Loading branch information...
commit 9c360b566e353f3df5d841810eea38357ab7a2b0 1 parent 7fc3333
@demerphq demerphq authored
Showing with 129 additions and 128 deletions.
  1. +129 −128 Decoder/srl_decoder.h
View
257 Decoder/srl_decoder.h
@@ -118,133 +118,134 @@ The above perl script can be used to regenerate the following data structure.
Have fun. ;-)
*/
static const char * const tag_name[] = {
- /* # 0 0x00 0b00000000 */ "POS_LOW",
- /* # 1 0x01 0b00000001 */ "POS_1",
- /* # 2 0x02 0b00000010 */ "POS_2",
- /* # 3 0x03 0b00000011 */ "POS_3",
- /* # 4 0x04 0b00000100 */ "POS_4",
- /* # 5 0x05 0b00000101 */ "POS_5",
- /* # 6 0x06 0b00000110 */ "POS_6",
- /* # 7 0x07 0b00000111 */ "POS_7",
- /* # 8 0x08 0b00001000 */ "POS_8",
- /* # 9 0x09 0b00001001 */ "POS_9",
- /* # 10 0x0a 0b00001010 */ "POS_10",
- /* # 11 0x0b 0b00001011 */ "POS_11",
- /* # 12 0x0c 0b00001100 */ "POS_12",
- /* # 13 0x0d 0b00001101 */ "POS_13",
- /* # 14 0x0e 0b00001110 */ "POS_14",
- /* # 15 0x0f 0b00001111 */ "POS_HIGH",
- /* # 16 0x10 0b00010000 */ "NEG_LOW",
- /* # 17 0x11 0b00010001 */ "NEG_17",
- /* # 18 0x12 0b00010010 */ "NEG_18",
- /* # 19 0x13 0b00010011 */ "NEG_19",
- /* # 20 0x14 0b00010100 */ "NEG_20",
- /* # 21 0x15 0b00010101 */ "NEG_21",
- /* # 22 0x16 0b00010110 */ "NEG_22",
- /* # 23 0x17 0b00010111 */ "NEG_23",
- /* # 24 0x18 0b00011000 */ "NEG_24",
- /* # 25 0x19 0b00011001 */ "NEG_25",
- /* # 26 0x1a 0b00011010 */ "NEG_26",
- /* # 27 0x1b 0b00011011 */ "NEG_27",
- /* # 28 0x1c 0b00011100 */ "NEG_28",
- /* # 29 0x1d 0b00011101 */ "NEG_29",
- /* # 30 0x1e 0b00011110 */ "NEG_30",
- /* # 31 0x1f 0b00011111 */ "NEG_HIGH",
- /* # 32 0x20 0b00100000 */ "VARINT",
- /* # 33 0x21 0b00100001 */ "ZIGZAG",
- /* # 34 0x22 0b00100010 */ "FLOAT",
- /* # 35 0x23 0b00100011 */ "DOUBLE",
- /* # 36 0x24 0b00100100 */ "LONG_DOUBLE",
- /* # 37 0x25 0b00100101 */ "UNDEF",
- /* # 38 0x26 0b00100110 */ "STRING",
- /* # 39 0x27 0b00100111 */ "STRING_UTF8",
- /* # 40 0x28 0b00101000 */ "REFP",
- /* # 41 0x29 0b00101001 */ "REFN",
- /* # 42 0x2a 0b00101010 */ "HASH",
- /* # 43 0x2b 0b00101011 */ "ARRAY",
- /* # 44 0x2c 0b00101100 */ "BLESS",
- /* # 45 0x2d 0b00101101 */ "BLESSV",
- /* # 46 0x2e 0b00101110 */ "ALIAS",
- /* # 47 0x2f 0b00101111 */ "COPY",
- /* # 48 0x30 0b00110000 */ "EXTEND",
- /* # 49 0x31 0b00110001 */ "LIST",
- /* # 50 0x32 0b00110010 */ "WEAKEN",
- /* # 51 0x33 0b00110011 */ "REGEXP",
- /* # 52 0x34 0b00110100 */ "PAD",
- /* # 53 0x35 0b00110101 */ "RESERVED_LOW",
- /* # 54 0x36 0b00110110 */ "RESERVED_54",
- /* # 55 0x37 0b00110111 */ "RESERVED_55",
- /* # 56 0x38 0b00111000 */ "RESERVED_56",
- /* # 57 0x39 0b00111001 */ "RESERVED_57",
- /* # 58 0x3a 0b00111010 */ "RESERVED_58",
- /* # 59 0x3b 0b00111011 */ "RESERVED_59",
- /* # 60 0x3c 0b00111100 */ "RESERVED_60",
- /* # 61 0x3d 0b00111101 */ "RESERVED_61",
- /* # 62 0x3e 0b00111110 */ "RESERVED_62",
- /* # 63 0x3f 0b00111111 */ "RESERVED_63",
- /* # 64 0x40 0b01000000 */ "RESERVED_64",
- /* # 65 0x41 0b01000001 */ "RESERVED_65",
- /* # 66 0x42 0b01000010 */ "RESERVED_66",
- /* # 67 0x43 0b01000011 */ "RESERVED_67",
- /* # 68 0x44 0b01000100 */ "RESERVED_68",
- /* # 69 0x45 0b01000101 */ "RESERVED_69",
- /* # 70 0x46 0b01000110 */ "RESERVED_70",
- /* # 71 0x47 0b01000111 */ "RESERVED_71",
- /* # 72 0x48 0b01001000 */ "RESERVED_72",
- /* # 73 0x49 0b01001001 */ "RESERVED_73",
- /* # 74 0x4a 0b01001010 */ "RESERVED_74",
- /* # 75 0x4b 0b01001011 */ "RESERVED_75",
- /* # 76 0x4c 0b01001100 */ "RESERVED_76",
- /* # 77 0x4d 0b01001101 */ "RESERVED_77",
- /* # 78 0x4e 0b01001110 */ "RESERVED_78",
- /* # 79 0x4f 0b01001111 */ "RESERVED_79",
- /* # 80 0x50 0b01010000 */ "RESERVED_80",
- /* # 81 0x51 0b01010001 */ "RESERVED_81",
- /* # 82 0x52 0b01010010 */ "RESERVED_82",
- /* # 83 0x53 0b01010011 */ "RESERVED_83",
- /* # 84 0x54 0b01010100 */ "RESERVED_84",
- /* # 85 0x55 0b01010101 */ "RESERVED_85",
- /* # 86 0x56 0b01010110 */ "RESERVED_86",
- /* # 87 0x57 0b01010111 */ "RESERVED_87",
- /* # 88 0x58 0b01011000 */ "RESERVED_88",
- /* # 89 0x59 0b01011001 */ "RESERVED_89",
- /* # 90 0x5a 0b01011010 */ "RESERVED_90",
- /* # 91 0x5b 0b01011011 */ "RESERVED_91",
- /* # 92 0x5c 0b01011100 */ "RESERVED_92",
- /* # 93 0x5d 0b01011101 */ "RESERVED_93",
- /* # 94 0x5e 0b01011110 */ "RESERVED_94",
- /* # 95 0x5f 0b01011111 */ "RESERVED_HIGH",
- /* # 96 0x60 0b01100000 */ "ASCII_LOW",
- /* # 97 0x61 0b01100001 */ "ASCII_97",
- /* # 98 0x62 0b01100010 */ "ASCII_98",
- /* # 99 0x63 0b01100011 */ "ASCII_99",
- /* # 100 0x64 0b01100100 */ "ASCII_100",
- /* # 101 0x65 0b01100101 */ "ASCII_101",
- /* # 102 0x66 0b01100110 */ "ASCII_102",
- /* # 103 0x67 0b01100111 */ "ASCII_103",
- /* # 104 0x68 0b01101000 */ "ASCII_104",
- /* # 105 0x69 0b01101001 */ "ASCII_105",
- /* # 106 0x6a 0b01101010 */ "ASCII_106",
- /* # 107 0x6b 0b01101011 */ "ASCII_107",
- /* # 108 0x6c 0b01101100 */ "ASCII_108",
- /* # 109 0x6d 0b01101101 */ "ASCII_109",
- /* # 110 0x6e 0b01101110 */ "ASCII_110",
- /* # 111 0x6f 0b01101111 */ "ASCII_111",
- /* # 112 0x70 0b01110000 */ "ASCII_112",
- /* # 113 0x71 0b01110001 */ "ASCII_113",
- /* # 114 0x72 0b01110010 */ "ASCII_114",
- /* # 115 0x73 0b01110011 */ "ASCII_115",
- /* # 116 0x74 0b01110100 */ "ASCII_116",
- /* # 117 0x75 0b01110101 */ "ASCII_117",
- /* # 118 0x76 0b01110110 */ "ASCII_118",
- /* # 119 0x77 0b01110111 */ "ASCII_119",
- /* # 120 0x78 0b01111000 */ "ASCII_120",
- /* # 121 0x79 0b01111001 */ "ASCII_121",
- /* # 122 0x7a 0b01111010 */ "ASCII_122",
- /* # 123 0x7b 0b01111011 */ "ASCII_123",
- /* # 124 0x7c 0b01111100 */ "ASCII_124",
- /* # 125 0x7d 0b01111101 */ "ASCII_125",
- /* # 126 0x7e 0b01111110 */ "ASCII_126",
- /* # 127 0x7f 0b01111111 */ "ASCII_HIGH"
+ /* # 0 0x00 0b00000000 */ "POS_LOW",
+ /* # 1 0x01 0b00000001 */ "POS_1",
+ /* # 2 0x02 0b00000010 */ "POS_2",
+ /* # 3 0x03 0b00000011 */ "POS_3",
+ /* # 4 0x04 0b00000100 */ "POS_4",
+ /* # 5 0x05 0b00000101 */ "POS_5",
+ /* # 6 0x06 0b00000110 */ "POS_6",
+ /* # 7 0x07 0b00000111 */ "POS_7",
+ /* # 8 0x08 0b00001000 */ "POS_8",
+ /* # 9 0x09 0b00001001 */ "POS_9",
+ /* # 10 0x0a 0b00001010 */ "POS_10",
+ /* # 11 0x0b 0b00001011 */ "POS_11",
+ /* # 12 0x0c 0b00001100 */ "POS_12",
+ /* # 13 0x0d 0b00001101 */ "POS_13",
+ /* # 14 0x0e 0b00001110 */ "POS_14",
+ /* # 15 0x0f 0b00001111 */ "POS_HIGH",
+ /* # 16 0x10 0b00010000 */ "NEG_LOW",
+ /* # 17 0x11 0b00010001 */ "NEG_17",
+ /* # 18 0x12 0b00010010 */ "NEG_18",
+ /* # 19 0x13 0b00010011 */ "NEG_19",
+ /* # 20 0x14 0b00010100 */ "NEG_20",
+ /* # 21 0x15 0b00010101 */ "NEG_21",
+ /* # 22 0x16 0b00010110 */ "NEG_22",
+ /* # 23 0x17 0b00010111 */ "NEG_23",
+ /* # 24 0x18 0b00011000 */ "NEG_24",
+ /* # 25 0x19 0b00011001 */ "NEG_25",
+ /* # 26 0x1a 0b00011010 */ "NEG_26",
+ /* # 27 0x1b 0b00011011 */ "NEG_27",
+ /* # 28 0x1c 0b00011100 */ "NEG_28",
+ /* # 29 0x1d 0b00011101 */ "NEG_29",
+ /* # 30 0x1e 0b00011110 */ "NEG_30",
+ /* # 31 0x1f 0b00011111 */ "NEG_HIGH",
+ /* # 32 0x20 0b00100000 */ "VARINT",
+ /* # 33 0x21 0b00100001 */ "ZIGZAG",
+ /* # 34 0x22 0b00100010 */ "FLOAT",
+ /* # 35 0x23 0b00100011 */ "DOUBLE",
+ /* # 36 0x24 0b00100100 */ "LONG_DOUBLE",
+ /* # 37 0x25 0b00100101 */ "UNDEF",
+ /* # 38 0x26 0b00100110 */ "STRING",
+ /* # 39 0x27 0b00100111 */ "STRING_UTF8",
+ /* # 40 0x28 0b00101000 */ "REFP",
+ /* # 41 0x29 0b00101001 */ "REFN",
+ /* # 42 0x2a 0b00101010 */ "HASH",
+ /* # 43 0x2b 0b00101011 */ "ARRAY",
+ /* # 44 0x2c 0b00101100 */ "BLESS",
+ /* # 45 0x2d 0b00101101 */ "BLESSV",
+ /* # 46 0x2e 0b00101110 */ "ALIAS",
+ /* # 47 0x2f 0b00101111 */ "COPY",
+ /* # 48 0x30 0b00110000 */ "EXTEND",
+ /* # 49 0x31 0b00110001 */ "LIST",
+ /* # 50 0x32 0b00110010 */ "WEAKEN",
+ /* # 51 0x33 0b00110011 */ "REGEXP",
+ /* # 52 0x34 0b00110100 */ "PAD",
+ /* # 53 0x35 0b00110101 */ "RESERVED_LOW",
+ /* # 54 0x36 0b00110110 */ "RESERVED_54",
+ /* # 55 0x37 0b00110111 */ "RESERVED_55",
+ /* # 56 0x38 0b00111000 */ "RESERVED_56",
+ /* # 57 0x39 0b00111001 */ "RESERVED_57",
+ /* # 58 0x3a 0b00111010 */ "RESERVED_58",
+ /* # 59 0x3b 0b00111011 */ "RESERVED_59",
+ /* # 60 0x3c 0b00111100 */ "RESERVED_60",
+ /* # 61 0x3d 0b00111101 */ "RESERVED_61",
+ /* # 62 0x3e 0b00111110 */ "RESERVED_62",
+ /* # 63 0x3f 0b00111111 */ "RESERVED_63",
+ /* # 64 0x40 0b01000000 */ "RESERVED_64",
+ /* # 65 0x41 0b01000001 */ "RESERVED_65",
+ /* # 66 0x42 0b01000010 */ "RESERVED_66",
+ /* # 67 0x43 0b01000011 */ "RESERVED_67",
+ /* # 68 0x44 0b01000100 */ "RESERVED_68",
+ /* # 69 0x45 0b01000101 */ "RESERVED_69",
+ /* # 70 0x46 0b01000110 */ "RESERVED_70",
+ /* # 71 0x47 0b01000111 */ "RESERVED_71",
+ /* # 72 0x48 0b01001000 */ "RESERVED_72",
+ /* # 73 0x49 0b01001001 */ "RESERVED_73",
+ /* # 74 0x4a 0b01001010 */ "RESERVED_74",
+ /* # 75 0x4b 0b01001011 */ "RESERVED_75",
+ /* # 76 0x4c 0b01001100 */ "RESERVED_76",
+ /* # 77 0x4d 0b01001101 */ "RESERVED_77",
+ /* # 78 0x4e 0b01001110 */ "RESERVED_78",
+ /* # 79 0x4f 0b01001111 */ "RESERVED_79",
+ /* # 80 0x50 0b01010000 */ "RESERVED_80",
+ /* # 81 0x51 0b01010001 */ "RESERVED_81",
+ /* # 82 0x52 0b01010010 */ "RESERVED_82",
+ /* # 83 0x53 0b01010011 */ "RESERVED_83",
+ /* # 84 0x54 0b01010100 */ "RESERVED_84",
+ /* # 85 0x55 0b01010101 */ "RESERVED_85",
+ /* # 86 0x56 0b01010110 */ "RESERVED_86",
+ /* # 87 0x57 0b01010111 */ "RESERVED_87",
+ /* # 88 0x58 0b01011000 */ "RESERVED_88",
+ /* # 89 0x59 0b01011001 */ "RESERVED_89",
+ /* # 90 0x5a 0b01011010 */ "RESERVED_90",
+ /* # 91 0x5b 0b01011011 */ "RESERVED_91",
+ /* # 92 0x5c 0b01011100 */ "RESERVED_92",
+ /* # 93 0x5d 0b01011101 */ "RESERVED_93",
+ /* # 94 0x5e 0b01011110 */ "RESERVED_94",
+ /* # 95 0x5f 0b01011111 */ "RESERVED_HIGH",
+ /* # 96 0x60 0b01100000 */ "ASCII_LOW",
+ /* # 97 0x61 0b01100001 */ "ASCII_97",
+ /* # 98 0x62 0b01100010 */ "ASCII_98",
+ /* # 99 0x63 0b01100011 */ "ASCII_99",
+ /* # 100 0x64 0b01100100 */ "ASCII_100",
+ /* # 101 0x65 0b01100101 */ "ASCII_101",
+ /* # 102 0x66 0b01100110 */ "ASCII_102",
+ /* # 103 0x67 0b01100111 */ "ASCII_103",
+ /* # 104 0x68 0b01101000 */ "ASCII_104",
+ /* # 105 0x69 0b01101001 */ "ASCII_105",
+ /* # 106 0x6a 0b01101010 */ "ASCII_106",
+ /* # 107 0x6b 0b01101011 */ "ASCII_107",
+ /* # 108 0x6c 0b01101100 */ "ASCII_108",
+ /* # 109 0x6d 0b01101101 */ "ASCII_109",
+ /* # 110 0x6e 0b01101110 */ "ASCII_110",
+ /* # 111 0x6f 0b01101111 */ "ASCII_111",
+ /* # 112 0x70 0b01110000 */ "ASCII_112",
+ /* # 113 0x71 0b01110001 */ "ASCII_113",
+ /* # 114 0x72 0b01110010 */ "ASCII_114",
+ /* # 115 0x73 0b01110011 */ "ASCII_115",
+ /* # 116 0x74 0b01110100 */ "ASCII_116",
+ /* # 117 0x75 0b01110101 */ "ASCII_117",
+ /* # 118 0x76 0b01110110 */ "ASCII_118",
+ /* # 119 0x77 0b01110111 */ "ASCII_119",
+ /* # 120 0x78 0b01111000 */ "ASCII_120",
+ /* # 121 0x79 0b01111001 */ "ASCII_121",
+ /* # 122 0x7a 0b01111010 */ "ASCII_122",
+ /* # 123 0x7b 0b01111011 */ "ASCII_123",
+ /* # 124 0x7c 0b01111100 */ "ASCII_124",
+ /* # 125 0x7d 0b01111101 */ "ASCII_125",
+ /* # 126 0x7e 0b01111110 */ "ASCII_126",
+ /* # 127 0x7f 0b01111111 */ "ASCII_HIGH"
};
#endif
+/* do not put anything below the #endif! */
Please sign in to comment.
Something went wrong with that request. Please try again.