os/textandloc/fontservices/textshaperplugin/include/SymbianPlatform.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     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".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 * This file gets the ICU Layout Engine compiling on Symbian OS.
    16 *
    17 */
    18 
    19 
    20 
    21 
    22 #include <e32std.h>
    23 
    24 #ifndef __SYMBIANPLATFORM_H_
    25 #define __SYMBIANPLATFORM_H_
    26 #endif
    27 
    28 /* This enables Rdebug shaper memory logging */
    29 //#define SHAPER_MEMORY_DEBUG
    30 
    31 #define LE_ARRAY_COPY(dst, src, count) (Mem::Copy(dst, src, (count) * sizeof (src)[0]))
    32 
    33 #ifdef SHAPER_MEMORY_DEBUG
    34 
    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) 
    39 
    40 #else
    41 
    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) )
    45 #endif
    46 
    47 #define U_HAVE_NAMESPACE 1
    48 #define U_UTF8_IMPL 1
    49 
    50 typedef long long int64_t;
    51 
    52 #define U_IS_BIG_ENDIAN 0
    53 
    54 /*===========================================================================*/
    55 /* Generic data types                                                        */
    56 /*===========================================================================*/
    57 
    58 typedef signed char int8_t;
    59 typedef unsigned char uint8_t;
    60 typedef signed short int16_t;
    61 typedef unsigned short uint16_t;
    62 #if defined(_LP64)
    63 typedef signed int  int32_t;
    64 typedef unsigned int  uint32_t;
    65 #else
    66 typedef signed long int32_t;
    67 typedef unsigned long uint32_t;
    68 #endif
    69 
    70 #define U_HAVE_WCHAR_H      0
    71 #define U_SIZEOF_WCHAR_T    2
    72 
    73 #define U_HAVE_WCSCPY       0
    74 
    75 #define U_EXPORT
    76 #define U_EXPORT2
    77 #define U_IMPORT
    78 
    79 #define U_MAKE  "Make"
    80