Update contrib.
1 // Copyright (c) 2005-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.
17 #include <e32std_private.h>
19 EXPORT_C TAny* operator new(TUint aSize) __NO_THROW
21 // The global new operator.
25 return(User::Alloc(aSize));
28 EXPORT_C TAny* operator new[](TUint aSize) __NO_THROW
31 return(User::Alloc(aSize));
34 EXPORT_C TAny* operator new(TUint aSize, const std::nothrow_t& aNoThrow) __NO_THROW
36 // The global new operator.
40 return(User::Alloc(aSize));
43 EXPORT_C TAny* operator new[](TUint aSize, const std::nothrow_t& aNoThrow) __NO_THROW
46 return(User::Alloc(aSize));
49 EXPORT_C TAny* operator new(TUint aSize,TUint anExtraSize) __NO_THROW
51 // Allocate the requested size plus the extra.
55 return(User::Alloc(aSize+anExtraSize));