sl@0: /* sl@0: * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * This file gets the ICU Layout Engine compiling on Symbian OS. sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: sl@0: #include sl@0: sl@0: #ifndef __SYMBIANPLATFORM_H_ sl@0: #define __SYMBIANPLATFORM_H_ sl@0: #endif sl@0: sl@0: /* This enables Rdebug shaper memory logging */ sl@0: //#define SHAPER_MEMORY_DEBUG sl@0: sl@0: #define LE_ARRAY_COPY(dst, src, count) (Mem::Copy(dst, src, (count) * sizeof (src)[0])) sl@0: sl@0: #ifdef SHAPER_MEMORY_DEBUG sl@0: sl@0: /* test versions for debugging shaper heap memory problems */ sl@0: #define LE_NEW_ARRAY(type, count) reinterpret_cast(NewArray(sizeof(type), count)) sl@0: #define LE_GROW_ARRAY(array, newSize) GrowArray(array, (newSize) * sizeof (array)[0]) sl@0: #define LE_DELETE_ARRAY(array) UMemory::FreeArray((void*)array) sl@0: sl@0: #else sl@0: sl@0: #define LE_NEW_ARRAY(type, count) ( reinterpret_cast(User::Alloc( sizeof(type)*(count) )) ) sl@0: #define LE_GROW_ARRAY(array, newSize) ( User::ReAlloc(array, (newSize) * sizeof (array)[0]) ) sl@0: #define LE_DELETE_ARRAY(array) ( User::Free((void*)array) ) sl@0: #endif sl@0: sl@0: #define U_HAVE_NAMESPACE 1 sl@0: #define U_UTF8_IMPL 1 sl@0: sl@0: typedef long long int64_t; sl@0: sl@0: #define U_IS_BIG_ENDIAN 0 sl@0: sl@0: /*===========================================================================*/ sl@0: /* Generic data types */ sl@0: /*===========================================================================*/ sl@0: sl@0: typedef signed char int8_t; sl@0: typedef unsigned char uint8_t; sl@0: typedef signed short int16_t; sl@0: typedef unsigned short uint16_t; sl@0: #if defined(_LP64) sl@0: typedef signed int int32_t; sl@0: typedef unsigned int uint32_t; sl@0: #else sl@0: typedef signed long int32_t; sl@0: typedef unsigned long uint32_t; sl@0: #endif sl@0: sl@0: #define U_HAVE_WCHAR_H 0 sl@0: #define U_SIZEOF_WCHAR_T 2 sl@0: sl@0: #define U_HAVE_WCSCPY 0 sl@0: sl@0: #define U_EXPORT sl@0: #define U_EXPORT2 sl@0: #define U_IMPORT sl@0: sl@0: #define U_MAKE "Make" sl@0: