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_FXCRT_INCLUDE_FX_MEMORY_H_ |
8 #define CORE_INCLUDE_FXCRT_FX_MEMORY_H_ | 8 #define CORE_FXCRT_INCLUDE_FX_MEMORY_H_ |
9 | 9 |
10 #include "core/include/fxcrt/fx_system.h" | 10 #include "core/fxcrt/include/fx_system.h" |
11 | 11 |
12 #ifdef __cplusplus | 12 #ifdef __cplusplus |
13 extern "C" { | 13 extern "C" { |
14 #endif | 14 #endif |
15 | 15 |
16 // For external C libraries to malloc through PDFium. These may return NULL. | 16 // For external C libraries to malloc through PDFium. These may return NULL. |
17 void* FXMEM_DefaultAlloc(size_t byte_size, int flags); | 17 void* FXMEM_DefaultAlloc(size_t byte_size, int flags); |
18 void* FXMEM_DefaultRealloc(void* pointer, size_t new_size, int flags); | 18 void* FXMEM_DefaultRealloc(void* pointer, size_t new_size, int flags); |
19 void FXMEM_DefaultFree(void* pointer, int flags); | 19 void FXMEM_DefaultFree(void* pointer, int flags); |
20 | 20 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 #define FX_Free(ptr) free(ptr) | 75 #define FX_Free(ptr) free(ptr) |
76 | 76 |
77 class CFX_DestructObject { | 77 class CFX_DestructObject { |
78 public: | 78 public: |
79 virtual ~CFX_DestructObject() {} | 79 virtual ~CFX_DestructObject() {} |
80 }; | 80 }; |
81 | 81 |
82 #endif // __cplusplus | 82 #endif // __cplusplus |
83 | 83 |
84 #endif // CORE_INCLUDE_FXCRT_FX_MEMORY_H_ | 84 #endif // CORE_FXCRT_INCLUDE_FX_MEMORY_H_ |
OLD | NEW |