| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef CORE_INCLUDE_FXCRT_FX_MEMORY_H_ | 7 #ifndef CORE_INCLUDE_FXCRT_FX_MEMORY_H_ |
| 8 #define CORE_INCLUDE_FXCRT_FX_MEMORY_H_ | 8 #define CORE_INCLUDE_FXCRT_FX_MEMORY_H_ |
| 9 | 9 |
| 10 #include "core/include/fxcrt/fx_system.h" | 10 #include "core/include/fxcrt/fx_system.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 } | 91 } |
| 92 | 92 |
| 93 void* Alloc(size_t size); | 93 void* Alloc(size_t size); |
| 94 | 94 |
| 95 void* ReallocDebug(void* p, size_t new_size, const FX_CHAR* file, int line) { | 95 void* ReallocDebug(void* p, size_t new_size, const FX_CHAR* file, int line) { |
| 96 return NULL; | 96 return NULL; |
| 97 } | 97 } |
| 98 | 98 |
| 99 void* Realloc(void* p, size_t new_size) { return NULL; } | 99 void* Realloc(void* p, size_t new_size) { return NULL; } |
| 100 | 100 |
| 101 void Free(void*) {} | 101 void Free(void* mem) {} |
| 102 | 102 |
| 103 void FreeAll(); | 103 void FreeAll(); |
| 104 | 104 |
| 105 private: | 105 private: |
| 106 size_t m_TrunkSize; | 106 size_t m_TrunkSize; |
| 107 | 107 |
| 108 void* m_pFirstTrunk; | 108 void* m_pFirstTrunk; |
| 109 }; | 109 }; |
| 110 #endif // __cplusplus | 110 #endif // __cplusplus |
| 111 | 111 |
| 112 #endif // CORE_INCLUDE_FXCRT_FX_MEMORY_H_ | 112 #endif // CORE_INCLUDE_FXCRT_FX_MEMORY_H_ |
| OLD | NEW |