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