os/textandloc/fontservices/textshaperplugin/include/SymbianPlatform.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
/*
sl@0
     2
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
* All rights reserved.
sl@0
     4
* This component and the accompanying materials are made available
sl@0
     5
* under the terms of "Eclipse Public License v1.0"
sl@0
     6
* which accompanies this distribution, and is available
sl@0
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
*
sl@0
     9
* Initial Contributors:
sl@0
    10
* Nokia Corporation - initial contribution.
sl@0
    11
*
sl@0
    12
* Contributors:
sl@0
    13
*
sl@0
    14
* Description: 
sl@0
    15
* This file gets the ICU Layout Engine compiling on Symbian OS.
sl@0
    16
*
sl@0
    17
*/
sl@0
    18
sl@0
    19
sl@0
    20
sl@0
    21
sl@0
    22
#include <e32std.h>
sl@0
    23
sl@0
    24
#ifndef __SYMBIANPLATFORM_H_
sl@0
    25
#define __SYMBIANPLATFORM_H_
sl@0
    26
#endif
sl@0
    27
sl@0
    28
/* This enables Rdebug shaper memory logging */
sl@0
    29
//#define SHAPER_MEMORY_DEBUG
sl@0
    30
sl@0
    31
#define LE_ARRAY_COPY(dst, src, count) (Mem::Copy(dst, src, (count) * sizeof (src)[0]))
sl@0
    32
sl@0
    33
#ifdef SHAPER_MEMORY_DEBUG
sl@0
    34
sl@0
    35
/* test versions for debugging shaper heap memory problems */
sl@0
    36
#define LE_NEW_ARRAY(type, count) reinterpret_cast<type*>(NewArray(sizeof(type), count))
sl@0
    37
#define LE_GROW_ARRAY(array, newSize) GrowArray(array, (newSize) * sizeof (array)[0])
sl@0
    38
#define LE_DELETE_ARRAY(array) UMemory::FreeArray((void*)array) 
sl@0
    39
sl@0
    40
#else
sl@0
    41
sl@0
    42
#define LE_NEW_ARRAY(type, count) (  reinterpret_cast<type*>(User::Alloc( sizeof(type)*(count) ))  )
sl@0
    43
#define LE_GROW_ARRAY(array, newSize) ( User::ReAlloc(array, (newSize) * sizeof (array)[0]) )
sl@0
    44
#define LE_DELETE_ARRAY(array) ( User::Free((void*)array) )
sl@0
    45
#endif
sl@0
    46
sl@0
    47
#define U_HAVE_NAMESPACE 1
sl@0
    48
#define U_UTF8_IMPL 1
sl@0
    49
sl@0
    50
typedef long long int64_t;
sl@0
    51
sl@0
    52
#define U_IS_BIG_ENDIAN 0
sl@0
    53
sl@0
    54
/*===========================================================================*/
sl@0
    55
/* Generic data types                                                        */
sl@0
    56
/*===========================================================================*/
sl@0
    57
sl@0
    58
typedef signed char int8_t;
sl@0
    59
typedef unsigned char uint8_t;
sl@0
    60
typedef signed short int16_t;
sl@0
    61
typedef unsigned short uint16_t;
sl@0
    62
#if defined(_LP64)
sl@0
    63
typedef signed int  int32_t;
sl@0
    64
typedef unsigned int  uint32_t;
sl@0
    65
#else
sl@0
    66
typedef signed long int32_t;
sl@0
    67
typedef unsigned long uint32_t;
sl@0
    68
#endif
sl@0
    69
sl@0
    70
#define U_HAVE_WCHAR_H      0
sl@0
    71
#define U_SIZEOF_WCHAR_T    2
sl@0
    72
sl@0
    73
#define U_HAVE_WCSCPY       0
sl@0
    74
sl@0
    75
#define U_EXPORT
sl@0
    76
#define U_EXPORT2
sl@0
    77
#define U_IMPORT
sl@0
    78
sl@0
    79
#define U_MAKE  "Make"
sl@0
    80