First public contribution.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * This file gets the ICU Layout Engine compiling on Symbian OS.
24 #ifndef __SYMBIANPLATFORM_H_
25 #define __SYMBIANPLATFORM_H_
28 /* This enables Rdebug shaper memory logging */
29 //#define SHAPER_MEMORY_DEBUG
31 #define LE_ARRAY_COPY(dst, src, count) (Mem::Copy(dst, src, (count) * sizeof (src)[0]))
33 #ifdef SHAPER_MEMORY_DEBUG
35 /* test versions for debugging shaper heap memory problems */
36 #define LE_NEW_ARRAY(type, count) reinterpret_cast<type*>(NewArray(sizeof(type), count))
37 #define LE_GROW_ARRAY(array, newSize) GrowArray(array, (newSize) * sizeof (array)[0])
38 #define LE_DELETE_ARRAY(array) UMemory::FreeArray((void*)array)
42 #define LE_NEW_ARRAY(type, count) ( reinterpret_cast<type*>(User::Alloc( sizeof(type)*(count) )) )
43 #define LE_GROW_ARRAY(array, newSize) ( User::ReAlloc(array, (newSize) * sizeof (array)[0]) )
44 #define LE_DELETE_ARRAY(array) ( User::Free((void*)array) )
47 #define U_HAVE_NAMESPACE 1
50 typedef long long int64_t;
52 #define U_IS_BIG_ENDIAN 0
54 /*===========================================================================*/
55 /* Generic data types */
56 /*===========================================================================*/
58 typedef signed char int8_t;
59 typedef unsigned char uint8_t;
60 typedef signed short int16_t;
61 typedef unsigned short uint16_t;
63 typedef signed int int32_t;
64 typedef unsigned int uint32_t;
66 typedef signed long int32_t;
67 typedef unsigned long uint32_t;
70 #define U_HAVE_WCHAR_H 0
71 #define U_SIZEOF_WCHAR_T 2
73 #define U_HAVE_WCSCPY 0