OLD | NEW |
1 /* | 1 /* |
2 ****************************************************************************** | 2 ****************************************************************************** |
3 * | 3 * |
4 * Copyright (C) 2000-2010, International Business Machines | 4 * Copyright (C) 2000-2010, International Business Machines |
5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
6 * | 6 * |
7 ****************************************************************************** | 7 ****************************************************************************** |
8 * file name: ucnvmbcs.c | 8 * file name: ucnvmbcs.c |
9 * encoding: US-ASCII | 9 * encoding: US-ASCII |
10 * tab size: 8 (not used) | 10 * tab size: 8 (not used) |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 #include "unicode/udata.h" | 49 #include "unicode/udata.h" |
50 #include "unicode/uset.h" | 50 #include "unicode/uset.h" |
51 #include "ucnv_bld.h" | 51 #include "ucnv_bld.h" |
52 #include "ucnvmbcs.h" | 52 #include "ucnvmbcs.h" |
53 #include "ucnv_ext.h" | 53 #include "ucnv_ext.h" |
54 #include "ucnv_cnv.h" | 54 #include "ucnv_cnv.h" |
55 #include "umutex.h" | 55 #include "umutex.h" |
56 #include "cmemory.h" | 56 #include "cmemory.h" |
57 #include "cstring.h" | 57 #include "cstring.h" |
58 | 58 |
| 59 /* si_value is defined as a macro in some POSIX implementations' standard header
s. */ |
| 60 #ifdef si_value |
| 61 #undef si_value |
| 62 #endif |
| 63 |
59 /* control optimizations according to the platform */ | 64 /* control optimizations according to the platform */ |
60 #define MBCS_UNROLL_SINGLE_TO_BMP 1 | 65 #define MBCS_UNROLL_SINGLE_TO_BMP 1 |
61 #define MBCS_UNROLL_SINGLE_FROM_BMP 0 | 66 #define MBCS_UNROLL_SINGLE_FROM_BMP 0 |
62 | 67 |
63 /* | 68 /* |
64 * _MBCSHeader versions 5.3 & 4.3 | 69 * _MBCSHeader versions 5.3 & 4.3 |
65 * (Note that the _MBCSHeader version is in addition to the converter formatVers
ion.) | 70 * (Note that the _MBCSHeader version is in addition to the converter formatVers
ion.) |
66 * | 71 * |
67 * This version is optional. Version 5 is used for incompatible data format chan
ges. | 72 * This version is optional. Version 5 is used for incompatible data format chan
ges. |
68 * makeconv will continue to generate version 4 files if possible. | 73 * makeconv will continue to generate version 4 files if possible. |
(...skipping 5581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5650 * converters. Be sure to update it as well. | 5655 * converters. Be sure to update it as well. |
5651 */ | 5656 */ |
5652 | 5657 |
5653 const UConverterSharedData _MBCSData={ | 5658 const UConverterSharedData _MBCSData={ |
5654 sizeof(UConverterSharedData), 1, | 5659 sizeof(UConverterSharedData), 1, |
5655 NULL, NULL, NULL, FALSE, &_MBCSImpl, | 5660 NULL, NULL, NULL, FALSE, &_MBCSImpl, |
5656 0 | 5661 0 |
5657 }; | 5662 }; |
5658 | 5663 |
5659 #endif /* #if !UCONFIG_NO_LEGACY_CONVERSION */ | 5664 #endif /* #if !UCONFIG_NO_LEGACY_CONVERSION */ |
OLD | NEW |