equal
deleted
inserted
replaced
2650 /** |
2650 /** |
2651 SQLite OS porting layer API. |
2651 SQLite OS porting layer API. |
2652 |
2652 |
2653 Memory allocation routine. |
2653 Memory allocation routine. |
2654 |
2654 |
|
2655 EXPORT_C required to match IMPORT_C in stdlib.h and avoid compiler warning |
|
2656 |
2655 @internalComponent |
2657 @internalComponent |
2656 */ |
2658 */ |
2657 extern "C" void* sqlite3SymbianMalloc(size_t aSize) |
2659 extern "C" EXPORT_C void* sqlite3SymbianMalloc(size_t aSize) |
2658 { |
2660 { |
2659 __MEM_CALL(EMemOpAlloc, aSize, 0); |
2661 __MEM_CALL(EMemOpAlloc, aSize, 0); |
2660 return Allocator().Alloc(aSize); |
2662 return Allocator().Alloc(aSize); |
2661 } |
2663 } |
2662 |
2664 |
2663 /** |
2665 /** |
2664 SQLite OS porting layer API. |
2666 SQLite OS porting layer API. |
2665 |
2667 |
2666 Memory reallocation routine. |
2668 Memory reallocation routine. |
2667 |
2669 |
|
2670 EXPORT_C required to match IMPORT_C in stdlib.h and avoid compiler warning |
|
2671 |
2668 @internalComponent |
2672 @internalComponent |
2669 */ |
2673 */ |
2670 extern "C" void* sqlite3SymbianRealloc(void* aPtr, size_t aSize) |
2674 extern "C" EXPORT_C void* sqlite3SymbianRealloc(void* aPtr, size_t aSize) |
2671 { |
2675 { |
2672 #ifdef _SQLPROFILER |
2676 #ifdef _SQLPROFILER |
2673 TInt size = Allocator().AllocLen(aPtr); |
2677 TInt size = Allocator().AllocLen(aPtr); |
2674 __MEM_CALL(EMemOpRealloc, aSize, size); |
2678 __MEM_CALL(EMemOpRealloc, aSize, size); |
2675 #endif |
2679 #endif |
2679 /** |
2683 /** |
2680 SQLite OS porting layer API. |
2684 SQLite OS porting layer API. |
2681 |
2685 |
2682 Memory free routine. |
2686 Memory free routine. |
2683 |
2687 |
|
2688 EXPORT_C required to match IMPORT_C in stdlib.h and avoid compiler warning |
|
2689 |
2684 @internalComponent |
2690 @internalComponent |
2685 */ |
2691 */ |
2686 extern "C" void sqlite3SymbianFree(void* aPtr) |
2692 extern "C" EXPORT_C void sqlite3SymbianFree(void* aPtr) |
2687 { |
2693 { |
2688 #ifdef _SQLPROFILER |
2694 #ifdef _SQLPROFILER |
2689 TInt size = Allocator().AllocLen(aPtr); |
2695 TInt size = Allocator().AllocLen(aPtr); |
2690 __MEM_CALL(EMemOpFree, size, 0); |
2696 __MEM_CALL(EMemOpFree, size, 0); |
2691 #endif |
2697 #endif |