Update contrib.
1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "ARM EABI LICENCE.txt"
5 // which accompanies this distribution, and is available
6 // in kernel/eka/compsupp.
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
18 #include <e32std_private.h>
19 //#include <e32math.h>
23 EXPORT_C TAny *operator new(TUint aSize) __NO_THROW
25 // The global new operator.
29 return(User::Alloc(aSize));
32 EXPORT_C TAny *operator new[](TUint aSize) __NO_THROW
35 return(User::Alloc(aSize));
38 EXPORT_C TAny *operator new(TUint aSize,TUint anExtraSize) __NO_THROW
40 // Allocate the requested size plus the extra.
44 return(User::Alloc(aSize+anExtraSize));