|
61 | 61 |
|
62 | 62 | /// Default Horizontal codes. When composition of text is know beforehand, the other hcodes in this section can be used to achieve |
63 | 63 | /// more compression. |
64 | | -#define USX_HCODES_DFLT \ |
65 | | - (const unsigned char[]){ \ |
66 | | - 0x00, 0x40, 0x80, 0xC0, 0xE0} |
| 64 | +#define USX_HCODES_DFLT \ |
| 65 | + (const unsigned char[]) \ |
| 66 | + { \ |
| 67 | + 0x00, 0x40, 0x80, 0xC0, 0xE0 \ |
| 68 | + } |
67 | 69 | /// Length of each default hcode |
68 | | -#define USX_HCODE_LENS_DFLT \ |
69 | | - (const unsigned char[]){ \ |
70 | | - 2, 2, 2, 3, 3} |
| 70 | +#define USX_HCODE_LENS_DFLT \ |
| 71 | + (const unsigned char[]) \ |
| 72 | + { \ |
| 73 | + 2, 2, 2, 3, 3 \ |
| 74 | + } |
71 | 75 |
|
72 | 76 | /// Horizontal codes preset for English Alphabet content only |
73 | | -#define USX_HCODES_ALPHA_ONLY \ |
74 | | - (const unsigned char[]){ \ |
75 | | - 0x00, 0x00, 0x00, 0x00, 0x00} |
| 77 | +#define USX_HCODES_ALPHA_ONLY \ |
| 78 | + (const unsigned char[]) \ |
| 79 | + { \ |
| 80 | + 0x00, 0x00, 0x00, 0x00, 0x00 \ |
| 81 | + } |
76 | 82 | /// Length of each Alpha only hcode |
77 | 83 | #define USX_HCODE_LENS_ALPHA_ONLY \ |
78 | | - (const unsigned char[]){ \ |
79 | | - 0, 0, 0, 0, 0} |
| 84 | + (const unsigned char[]) \ |
| 85 | + { \ |
| 86 | + 0, 0, 0, 0, 0 \ |
| 87 | + } |
80 | 88 |
|
81 | 89 | /// Horizontal codes preset for Alpha Numeric content only |
82 | | -#define USX_HCODES_ALPHA_NUM_ONLY \ |
83 | | - (const unsigned char[]){ \ |
84 | | - 0x00, 0x00, 0x80, 0x00, 0x00} |
| 90 | +#define USX_HCODES_ALPHA_NUM_ONLY \ |
| 91 | + (const unsigned char[]) \ |
| 92 | + { \ |
| 93 | + 0x00, 0x00, 0x80, 0x00, 0x00 \ |
| 94 | + } |
85 | 95 | /// Length of each Alpha numeric hcode |
86 | 96 | #define USX_HCODE_LENS_ALPHA_NUM_ONLY \ |
87 | | - (const unsigned char[]){ \ |
88 | | - 1, 0, 1, 0, 0} |
| 97 | + (const unsigned char[]) \ |
| 98 | + { \ |
| 99 | + 1, 0, 1, 0, 0 \ |
| 100 | + } |
89 | 101 |
|
90 | 102 | /// Horizontal codes preset for Alpha Numeric and Symbol content only |
91 | 103 | #define USX_HCODES_ALPHA_NUM_SYM_ONLY \ |
92 | | - (const unsigned char[]){ \ |
93 | | - 0x00, 0x80, 0xC0, 0x00, 0x00} |
| 104 | + (const unsigned char[]) \ |
| 105 | + { \ |
| 106 | + 0x00, 0x80, 0xC0, 0x00, 0x00 \ |
| 107 | + } |
94 | 108 | /// Length of each Alpha numeric and symbol hcodes |
95 | 109 | #define USX_HCODE_LENS_ALPHA_NUM_SYM_ONLY \ |
96 | | - (const unsigned char[]){ \ |
97 | | - 1, 2, 2, 0, 0} |
| 110 | + (const unsigned char[]) \ |
| 111 | + { \ |
| 112 | + 1, 2, 2, 0, 0 \ |
| 113 | + } |
98 | 114 |
|
99 | 115 | /// Horizontal codes preset favouring Alphabet content |
100 | | -#define USX_HCODES_FAVOR_ALPHA \ |
101 | | - (const unsigned char[]){ \ |
102 | | - 0x00, 0x80, 0xA0, 0xC0, 0xE0} |
| 116 | +#define USX_HCODES_FAVOR_ALPHA \ |
| 117 | + (const unsigned char[]) \ |
| 118 | + { \ |
| 119 | + 0x00, 0x80, 0xA0, 0xC0, 0xE0 \ |
| 120 | + } |
103 | 121 | /// Length of each hcode favouring Alpha content |
104 | 122 | #define USX_HCODE_LENS_FAVOR_ALPHA \ |
105 | | - (const unsigned char[]){ \ |
106 | | - 1, 3, 3, 3, 3} |
| 123 | + (const unsigned char[]) \ |
| 124 | + { \ |
| 125 | + 1, 3, 3, 3, 3 \ |
| 126 | + } |
107 | 127 |
|
108 | 128 | /// Horizontal codes preset favouring repeating sequences |
109 | | -#define USX_HCODES_FAVOR_DICT \ |
110 | | - (const unsigned char[]){ \ |
111 | | - 0x00, 0x40, 0xC0, 0x80, 0xE0} |
| 129 | +#define USX_HCODES_FAVOR_DICT \ |
| 130 | + (const unsigned char[]) \ |
| 131 | + { \ |
| 132 | + 0x00, 0x40, 0xC0, 0x80, 0xE0 \ |
| 133 | + } |
112 | 134 | /// Length of each hcode favouring repeating sequences |
113 | 135 | #define USX_HCODE_LENS_FAVOR_DICT \ |
114 | | - (const unsigned char[]){ \ |
115 | | - 2, 2, 3, 2, 3} |
| 136 | + (const unsigned char[]) \ |
| 137 | + { \ |
| 138 | + 2, 2, 3, 2, 3 \ |
| 139 | + } |
116 | 140 |
|
117 | 141 | /// Horizontal codes preset favouring symbols |
118 | | -#define USX_HCODES_FAVOR_SYM \ |
119 | | - (const unsigned char[]){ \ |
120 | | - 0x80, 0x00, 0xA0, 0xC0, 0xE0} |
| 142 | +#define USX_HCODES_FAVOR_SYM \ |
| 143 | + (const unsigned char[]) \ |
| 144 | + { \ |
| 145 | + 0x80, 0x00, 0xA0, 0xC0, 0xE0 \ |
| 146 | + } |
121 | 147 | /// Length of each hcode favouring symbols |
122 | 148 | #define USX_HCODE_LENS_FAVOR_SYM \ |
123 | | - (const unsigned char[]){ \ |
124 | | - 3, 1, 3, 3, 3} |
| 149 | + (const unsigned char[]) \ |
| 150 | + { \ |
| 151 | + 3, 1, 3, 3, 3 \ |
| 152 | + } |
125 | 153 |
|
126 | 154 | // #define USX_HCODES_FAVOR_UMLAUT {0x00, 0x40, 0xE0, 0xC0, 0x80} |
127 | 155 | // #define USX_HCODE_LENS_FAVOR_UMLAUT {2, 2, 3, 3, 2} |
128 | 156 |
|
129 | 157 | /// Horizontal codes preset favouring umlaut letters |
130 | | -#define USX_HCODES_FAVOR_UMLAUT \ |
131 | | - (const unsigned char[]){ \ |
132 | | - 0x80, 0xA0, 0xC0, 0xE0, 0x00} |
| 158 | +#define USX_HCODES_FAVOR_UMLAUT \ |
| 159 | + (const unsigned char[]) \ |
| 160 | + { \ |
| 161 | + 0x80, 0xA0, 0xC0, 0xE0, 0x00 \ |
| 162 | + } |
133 | 163 | /// Length of each hcode favouring umlaut letters |
134 | 164 | #define USX_HCODE_LENS_FAVOR_UMLAUT \ |
135 | | - (const unsigned char[]){ \ |
136 | | - 3, 3, 3, 3, 1} |
| 165 | + (const unsigned char[]) \ |
| 166 | + { \ |
| 167 | + 3, 3, 3, 3, 1 \ |
| 168 | + } |
137 | 169 |
|
138 | 170 | /// Horizontal codes preset for no repeating sequences |
139 | | -#define USX_HCODES_NO_DICT \ |
140 | | - (const unsigned char[]){ \ |
141 | | - 0x00, 0x40, 0x80, 0x00, 0xC0} |
| 171 | +#define USX_HCODES_NO_DICT \ |
| 172 | + (const unsigned char[]) \ |
| 173 | + { \ |
| 174 | + 0x00, 0x40, 0x80, 0x00, 0xC0 \ |
| 175 | + } |
142 | 176 | /// Length of each hcode for no repeating sequences |
143 | 177 | #define USX_HCODE_LENS_NO_DICT \ |
144 | | - (const unsigned char[]){ \ |
145 | | - 2, 2, 2, 0, 2} |
| 178 | + (const unsigned char[]) \ |
| 179 | + { \ |
| 180 | + 2, 2, 2, 0, 2 \ |
| 181 | + } |
146 | 182 |
|
147 | 183 | /// Horizontal codes preset for no Unicode characters |
148 | | -#define USX_HCODES_NO_UNI \ |
149 | | - (const unsigned char[]){ \ |
150 | | - 0x00, 0x40, 0x80, 0xC0, 0x00} |
| 184 | +#define USX_HCODES_NO_UNI \ |
| 185 | + (const unsigned char[]) \ |
| 186 | + { \ |
| 187 | + 0x00, 0x40, 0x80, 0xC0, 0x00 \ |
| 188 | + } |
151 | 189 | /// Length of each hcode for no Unicode characters |
152 | 190 | #define USX_HCODE_LENS_NO_UNI \ |
153 | | - (const unsigned char[]){ \ |
154 | | - 2, 2, 2, 2, 0} |
| 191 | + (const unsigned char[]) \ |
| 192 | + { \ |
| 193 | + 2, 2, 2, 2, 0 \ |
| 194 | + } |
155 | 195 |
|
156 | 196 | extern const char* USX_FREQ_SEQ_DFLT[]; |
157 | 197 | extern const char* USX_FREQ_SEQ_TXT[]; |
|
0 commit comments