sl@0: // Copyright (c) 1995-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 the License "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: // e32\euser\epoc\arm\uc_std.h sl@0: // sl@0: // sl@0: sl@0: #if !defined(__UCSTD_H__) sl@0: #define __UCSTD_H__ sl@0: #include sl@0: sl@0: #ifdef __GCC32__ sl@0: sl@0: #define _CBASE_VPTR_OFFSET_ 0 sl@0: sl@0: #define _VTBL_INIT_SPARE_ 8 sl@0: #define _CBASE_DESTRUCT_OFFSET_ (_VTBL_INIT_SPARE_) sl@0: #define _CBASE_VTBL_SIZE_ (_VTBL_INIT_SPARE_+8) sl@0: #define _CACTIVESCHEDULER_WAIT_OFFSET_ (_CBASE_VTBL_SIZE_) sl@0: #define _CACTIVESCHEDULER_ERROR_OFFSET_ (_CBASE_VTBL_SIZE_+4) sl@0: #define _CACTIVESCHEDULER_VTBL_SIZE_ (_CBASE_VTBL_SIZE_+24) sl@0: #define _CACTIVE_DOCANCEL_OFFSET_ (_CBASE_VTBL_SIZE_) sl@0: #define _CACTIVE_RUNL_OFFSET_ (_CBASE_VTBL_SIZE_+4) sl@0: #define _CACTIVE_RUNERROR_OFFSET_ (_CBASE_VTBL_SIZE_+8) sl@0: #define _CACTIVE_VTBL_SIZE_ (_CBASE_VTBL_SIZE_+12) sl@0: #define _CSESSION_CREATEL_OFFSET_ (_CBASE_VTBL_SIZE_) sl@0: #define _CSESSION_COUNT_OFFSET_ (_CBASE_VTBL_SIZE_+4) sl@0: #define _CSESSION_SERVICEL_OFFSET_ (_CBASE_VTBL_SIZE_+8) sl@0: #define _CSESSION2_SERVICEL_OFFSET_ (_CBASE_VTBL_SIZE_+8) sl@0: #define _TTRAPHANDLER_VPTR_OFFSET_ 0 sl@0: #define _TTRAPHANDLER_TRAP_OFFSET_ 8 sl@0: #define _TTRAPHANDLER_LEAVE_OFFSET_ 16 sl@0: sl@0: #elif defined(__EABI__) sl@0: sl@0: #define _CBASE_VPTR_OFFSET_ 0 sl@0: #define _CBASE_DESTRUCT_OFFSET_ 4 sl@0: sl@0: #define _CBASE_VTBL_SIZE_ 12 sl@0: #define _CACTIVESCHEDULER_WAIT_OFFSET_ (_CBASE_VTBL_SIZE_) sl@0: #define _CACTIVESCHEDULER_ERROR_OFFSET_ (_CBASE_VTBL_SIZE_+4) // * sl@0: sl@0: #define _CACTIVE_DOCANCEL_OFFSET_ (_CBASE_VTBL_SIZE_) // * sl@0: #define _CACTIVE_RUNL_OFFSET_ (_CBASE_VTBL_SIZE_+4) // * sl@0: #define _CACTIVE_RUNERROR_OFFSET_ (_CBASE_VTBL_SIZE_+8) // * sl@0: #define _CACTIVE_VTBL_SIZE_ (_CBASE_VTBL_SIZE_+12) sl@0: #define _CSESSION_CREATEL_OFFSET_ (_CBASE_VTBL_SIZE_) sl@0: #define _CSESSION_COUNT_OFFSET_ (_CBASE_VTBL_SIZE_+4) sl@0: #define _CSESSION_SERVICEL_OFFSET_ (_CBASE_VTBL_SIZE_+8) // * sl@0: #define _CSESSION2_SERVICEL_OFFSET_ (_CBASE_VTBL_SIZE_+8) // * sl@0: sl@0: sl@0: #define _TTRAPHANDLER_VPTR_OFFSET_ 0 sl@0: #define _TTRAPHANDLER_TRAP_OFFSET_ 0 sl@0: #define _TTRAPHANDLER_LEAVE_OFFSET_ 8 sl@0: #endif sl@0: sl@0: #endif