Mercurial > hg > xemacs-beta
comparison src/unicode.c @ 2551:9f70af3ac939
[xemacs-hg @ 2005-02-03 16:14:02 by james]
Commit Olivier Galibert's dumper updates for bignums and use them.
See xemacs-patches message with ID <ps8y685c6p.fsf@diannao.ittc.ku.edu>.
author | james |
---|---|
date | Thu, 03 Feb 2005 16:14:08 +0000 |
parents | 3d8143fc88e1 |
children | c8a9be2d4728 |
comparison
equal
deleted
inserted
replaced
2550:317f30471f4e | 2551:9f70af3ac939 |
---|---|
222 static const struct sized_memory_description to_unicode_level_0_desc = { | 222 static const struct sized_memory_description to_unicode_level_0_desc = { |
223 sizeof (int), to_unicode_level_0_desc_1 | 223 sizeof (int), to_unicode_level_0_desc_1 |
224 }; | 224 }; |
225 | 225 |
226 static const struct memory_description to_unicode_level_1_desc_1[] = { | 226 static const struct memory_description to_unicode_level_1_desc_1[] = { |
227 { XD_BLOCK_PTR, 0, 96, &to_unicode_level_0_desc }, | 227 { XD_BLOCK_PTR, 0, 96, { &to_unicode_level_0_desc } }, |
228 { XD_END } | 228 { XD_END } |
229 }; | 229 }; |
230 | 230 |
231 static const struct sized_memory_description to_unicode_level_1_desc = { | 231 static const struct sized_memory_description to_unicode_level_1_desc = { |
232 sizeof (void *), to_unicode_level_1_desc_1 | 232 sizeof (void *), to_unicode_level_1_desc_1 |
233 }; | 233 }; |
234 | 234 |
235 static const struct memory_description to_unicode_description_1[] = { | 235 static const struct memory_description to_unicode_description_1[] = { |
236 { XD_BLOCK_PTR, 1, 96, &to_unicode_level_0_desc }, | 236 { XD_BLOCK_PTR, 1, 96, { &to_unicode_level_0_desc } }, |
237 { XD_BLOCK_PTR, 2, 96, &to_unicode_level_1_desc }, | 237 { XD_BLOCK_PTR, 2, 96, { &to_unicode_level_1_desc } }, |
238 { XD_END } | 238 { XD_END } |
239 }; | 239 }; |
240 | 240 |
241 /* Not static because each charset has a set of to and from tables and | 241 /* Not static because each charset has a set of to and from tables and |
242 needs to describe them to pdump. */ | 242 needs to describe them to pdump. */ |
244 sizeof (void *), to_unicode_description_1 | 244 sizeof (void *), to_unicode_description_1 |
245 }; | 245 }; |
246 | 246 |
247 /* Used only for to_unicode_blank_2 */ | 247 /* Used only for to_unicode_blank_2 */ |
248 static const struct memory_description to_unicode_level_2_desc_1[] = { | 248 static const struct memory_description to_unicode_level_2_desc_1[] = { |
249 { XD_BLOCK_PTR, 0, 96, &to_unicode_level_1_desc }, | 249 { XD_BLOCK_PTR, 0, 96, { &to_unicode_level_1_desc } }, |
250 { XD_END } | 250 { XD_END } |
251 }; | 251 }; |
252 | 252 |
253 static const struct memory_description from_unicode_level_0_desc_1[] = { | 253 static const struct memory_description from_unicode_level_0_desc_1[] = { |
254 { XD_END } | 254 { XD_END } |
257 static const struct sized_memory_description from_unicode_level_0_desc = { | 257 static const struct sized_memory_description from_unicode_level_0_desc = { |
258 sizeof (short), from_unicode_level_0_desc_1 | 258 sizeof (short), from_unicode_level_0_desc_1 |
259 }; | 259 }; |
260 | 260 |
261 static const struct memory_description from_unicode_level_1_desc_1[] = { | 261 static const struct memory_description from_unicode_level_1_desc_1[] = { |
262 { XD_BLOCK_PTR, 0, 256, &from_unicode_level_0_desc }, | 262 { XD_BLOCK_PTR, 0, 256, { &from_unicode_level_0_desc } }, |
263 { XD_END } | 263 { XD_END } |
264 }; | 264 }; |
265 | 265 |
266 static const struct sized_memory_description from_unicode_level_1_desc = { | 266 static const struct sized_memory_description from_unicode_level_1_desc = { |
267 sizeof (void *), from_unicode_level_1_desc_1 | 267 sizeof (void *), from_unicode_level_1_desc_1 |
268 }; | 268 }; |
269 | 269 |
270 static const struct memory_description from_unicode_level_2_desc_1[] = { | 270 static const struct memory_description from_unicode_level_2_desc_1[] = { |
271 { XD_BLOCK_PTR, 0, 256, &from_unicode_level_1_desc }, | 271 { XD_BLOCK_PTR, 0, 256, { &from_unicode_level_1_desc } }, |
272 { XD_END } | 272 { XD_END } |
273 }; | 273 }; |
274 | 274 |
275 static const struct sized_memory_description from_unicode_level_2_desc = { | 275 static const struct sized_memory_description from_unicode_level_2_desc = { |
276 sizeof (void *), from_unicode_level_2_desc_1 | 276 sizeof (void *), from_unicode_level_2_desc_1 |
277 }; | 277 }; |
278 | 278 |
279 static const struct memory_description from_unicode_level_3_desc_1[] = { | 279 static const struct memory_description from_unicode_level_3_desc_1[] = { |
280 { XD_BLOCK_PTR, 0, 256, &from_unicode_level_2_desc }, | 280 { XD_BLOCK_PTR, 0, 256, { &from_unicode_level_2_desc } }, |
281 { XD_END } | 281 { XD_END } |
282 }; | 282 }; |
283 | 283 |
284 static const struct sized_memory_description from_unicode_level_3_desc = { | 284 static const struct sized_memory_description from_unicode_level_3_desc = { |
285 sizeof (void *), from_unicode_level_3_desc_1 | 285 sizeof (void *), from_unicode_level_3_desc_1 |
286 }; | 286 }; |
287 | 287 |
288 static const struct memory_description from_unicode_description_1[] = { | 288 static const struct memory_description from_unicode_description_1[] = { |
289 { XD_BLOCK_PTR, 1, 256, &from_unicode_level_0_desc }, | 289 { XD_BLOCK_PTR, 1, 256, { &from_unicode_level_0_desc } }, |
290 { XD_BLOCK_PTR, 2, 256, &from_unicode_level_1_desc }, | 290 { XD_BLOCK_PTR, 2, 256, { &from_unicode_level_1_desc } }, |
291 { XD_BLOCK_PTR, 3, 256, &from_unicode_level_2_desc }, | 291 { XD_BLOCK_PTR, 3, 256, { &from_unicode_level_2_desc } }, |
292 { XD_BLOCK_PTR, 4, 256, &from_unicode_level_3_desc }, | 292 { XD_BLOCK_PTR, 4, 256, { &from_unicode_level_3_desc } }, |
293 { XD_END } | 293 { XD_END } |
294 }; | 294 }; |
295 | 295 |
296 /* Not static because each charset has a set of to and from tables and | 296 /* Not static because each charset has a set of to and from tables and |
297 needs to describe them to pdump. */ | 297 needs to describe them to pdump. */ |
299 sizeof (void *), from_unicode_description_1 | 299 sizeof (void *), from_unicode_description_1 |
300 }; | 300 }; |
301 | 301 |
302 /* Used only for from_unicode_blank_4 */ | 302 /* Used only for from_unicode_blank_4 */ |
303 static const struct memory_description from_unicode_level_4_desc_1[] = { | 303 static const struct memory_description from_unicode_level_4_desc_1[] = { |
304 { XD_BLOCK_PTR, 0, 256, &from_unicode_level_3_desc }, | 304 { XD_BLOCK_PTR, 0, 256, { &from_unicode_level_3_desc } }, |
305 { XD_END } | 305 { XD_END } |
306 }; | 306 }; |
307 | 307 |
308 static Lisp_Object_dynarr *unicode_precedence_dynarr; | 308 static Lisp_Object_dynarr *unicode_precedence_dynarr; |
309 | 309 |