1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/textandloc/fontservices/textshaperplugin/include/SymbianPlatform.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,80 @@
1.4 +/*
1.5 +* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +* This file gets the ICU Layout Engine compiling on Symbian OS.
1.19 +*
1.20 +*/
1.21 +
1.22 +
1.23 +
1.24 +
1.25 +#include <e32std.h>
1.26 +
1.27 +#ifndef __SYMBIANPLATFORM_H_
1.28 +#define __SYMBIANPLATFORM_H_
1.29 +#endif
1.30 +
1.31 +/* This enables Rdebug shaper memory logging */
1.32 +//#define SHAPER_MEMORY_DEBUG
1.33 +
1.34 +#define LE_ARRAY_COPY(dst, src, count) (Mem::Copy(dst, src, (count) * sizeof (src)[0]))
1.35 +
1.36 +#ifdef SHAPER_MEMORY_DEBUG
1.37 +
1.38 +/* test versions for debugging shaper heap memory problems */
1.39 +#define LE_NEW_ARRAY(type, count) reinterpret_cast<type*>(NewArray(sizeof(type), count))
1.40 +#define LE_GROW_ARRAY(array, newSize) GrowArray(array, (newSize) * sizeof (array)[0])
1.41 +#define LE_DELETE_ARRAY(array) UMemory::FreeArray((void*)array)
1.42 +
1.43 +#else
1.44 +
1.45 +#define LE_NEW_ARRAY(type, count) ( reinterpret_cast<type*>(User::Alloc( sizeof(type)*(count) )) )
1.46 +#define LE_GROW_ARRAY(array, newSize) ( User::ReAlloc(array, (newSize) * sizeof (array)[0]) )
1.47 +#define LE_DELETE_ARRAY(array) ( User::Free((void*)array) )
1.48 +#endif
1.49 +
1.50 +#define U_HAVE_NAMESPACE 1
1.51 +#define U_UTF8_IMPL 1
1.52 +
1.53 +typedef long long int64_t;
1.54 +
1.55 +#define U_IS_BIG_ENDIAN 0
1.56 +
1.57 +/*===========================================================================*/
1.58 +/* Generic data types */
1.59 +/*===========================================================================*/
1.60 +
1.61 +typedef signed char int8_t;
1.62 +typedef unsigned char uint8_t;
1.63 +typedef signed short int16_t;
1.64 +typedef unsigned short uint16_t;
1.65 +#if defined(_LP64)
1.66 +typedef signed int int32_t;
1.67 +typedef unsigned int uint32_t;
1.68 +#else
1.69 +typedef signed long int32_t;
1.70 +typedef unsigned long uint32_t;
1.71 +#endif
1.72 +
1.73 +#define U_HAVE_WCHAR_H 0
1.74 +#define U_SIZEOF_WCHAR_T 2
1.75 +
1.76 +#define U_HAVE_WCSCPY 0
1.77 +
1.78 +#define U_EXPORT
1.79 +#define U_EXPORT2
1.80 +#define U_IMPORT
1.81 +
1.82 +#define U_MAKE "Make"
1.83 +