1 | /* |
1 | /* |
2 | checkuid.c - Part of psiconv, a PSION 5 file formats converter |
2 | checkuid.c - Part of psiconv, a PSION 5 file formats converter |
3 | Copyright (c) 1999 Frodo Looijaard <frodol@dds.nl> |
3 | Copyright (c) 1999-2004 Frodo Looijaard <frodol@dds.nl> |
4 | |
4 | |
5 | This program is free software; you can redistribute it and/or modify |
5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by |
6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or |
7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. |
8 | (at your option) any later version. |
… | |
… | |
16 | along with this program; if not, write to the Free Software |
16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
17 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
18 | */ |
18 | */ |
19 | |
19 | |
20 | #include "config.h" |
20 | #include "config.h" |
21 | #include "data.h" |
21 | #include "compat.h" |
22 | #include "parse_routines.h" |
22 | #include "common.h" |
|
|
23 | |
|
|
24 | #ifdef DMALLOC |
|
|
25 | #include <dmalloc.h> |
|
|
26 | #endif |
23 | |
27 | |
24 | static psiconv_u32 uid1[32] = |
28 | static psiconv_u32 uid1[32] = |
25 | { /* bit 0 */ 0x000045A0, |
29 | { /* bit 0 */ 0x000045A0, |
26 | /* bit 1 */ 0x00008B40, |
30 | /* bit 1 */ 0x00008B40, |
27 | /* bit 2 */ 0x000006A1, |
31 | /* bit 2 */ 0x000006A1, |
… | |
… | |
58 | static psiconv_u32 uid2[32] = |
62 | static psiconv_u32 uid2[32] = |
59 | { /* bit 0 */ 0x000076B4, |
63 | { /* bit 0 */ 0x000076B4, |
60 | /* bit 1 */ 0x0000ED68, |
64 | /* bit 1 */ 0x0000ED68, |
61 | /* bit 2 */ 0x0000CAF1, |
65 | /* bit 2 */ 0x0000CAF1, |
62 | /* bit 3 */ 0x000085C3, |
66 | /* bit 3 */ 0x000085C3, |
63 | /* bit 4 */ 0x000018A7, |
67 | /* bit 4 */ 0x00001BA7, |
64 | /* bit 5 */ 0x0000374E, |
68 | /* bit 5 */ 0x0000374E, |
65 | /* bit 6 */ 0x00006E9C, |
69 | /* bit 6 */ 0x00006E9C, |
66 | /* bit 7 */ 0x0000DD38, |
70 | /* bit 7 */ 0x0000DD38, |
67 | /* bit 8 */ 0x76B40000, |
71 | /* bit 8 */ 0x76B40000, |
68 | /* bit 9 */ 0xED680000, |
72 | /* bit 9 */ 0xED680000, |
69 | /* bit 10 */ 0xCAF10000, |
73 | /* bit 10 */ 0xCAF10000, |
70 | /* bit 11 */ 0x85C30000, |
74 | /* bit 11 */ 0x85C30000, |
71 | /* bit 12 */ 0x18A70000, |
75 | /* bit 12 */ 0x1BA70000, |
72 | /* bit 13 */ 0x374E0000, |
76 | /* bit 13 */ 0x374E0000, |
73 | /* bit 14 */ 0x6E9C0000, |
77 | /* bit 14 */ 0x6E9C0000, |
74 | /* bit 15 */ 0xDD380000, |
78 | /* bit 15 */ 0xDD380000, |
75 | /* bit 16 */ 0x00003730, |
79 | /* bit 16 */ 0x00003730, |
76 | /* bit 17 */ 0x00006E60, |
80 | /* bit 17 */ 0x00006E60, |