1 /*---------------------------------------------------------------------------* 2 Project: TwlSDK - libraries - STD 3 File: std_unicode_array.c 4 5 Copyright 2005-2008 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Date:: 2009-02-05#$ 14 $Rev: 9972 $ 15 $Author: ooshimay $ 16 *---------------------------------------------------------------------------*/ 17 #include <nitro.h> 18 19 #if defined(SDK_ARM9) || !defined(SDK_NITRO) 20 // Because of memory restrictions, it is not possible to use the Unicode conversion feature with ARM7 in NITRO mode 21 22 #if defined(SDK_ARM9) 23 #define STD_UNICODE_STATIC_IMPLEMENTATION 24 #endif 25 26 #if defined(STD_UNICODE_STATIC_IMPLEMENTATION) 27 // The array pointers are weak symbols; in HYBRID mode, the code table is sent to ltdmain. 28 // As weak symbols, however, they are not overwritten externally if they are placed in the same file. The array pointers have therefore been separated into std_unicode_array.c. 29 // 30 // 31 32 #include "sjis2unicode.h" 33 #include "unicode2sjis.h" 34 35 SDK_WEAK_SYMBOL const u8 *STD_Unicode2SjisArray = unicode2sjis_array; 36 SDK_WEAK_SYMBOL const u16 *STD_Sjis2UnicodeArray = sjis2unicode_array; 37 #endif 38 39 #endif // defined(SDK_ARM9) || !defined(SDK_NITRO) 40