Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: core/include/fxcrt/fx_memory.h

Issue 1722803002: Sort includes in xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Review cleanups Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/include/fxcrt/fx_basic.h ('k') | core/include/fxcrt/fx_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 11
12 #ifdef __cplusplus 12 #ifdef __cplusplus
13 extern "C" { 13 extern "C" {
14 #endif 14 #endif
15
15 // 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.
16 void* FXMEM_DefaultAlloc(size_t byte_size, int flags); 17 void* FXMEM_DefaultAlloc(size_t byte_size, int flags);
17 void* FXMEM_DefaultRealloc(void* pointer, size_t new_size, int flags); 18 void* FXMEM_DefaultRealloc(void* pointer, size_t new_size, int flags);
18 void FXMEM_DefaultFree(void* pointer, int flags); 19 void FXMEM_DefaultFree(void* pointer, int flags);
20
19 #ifdef __cplusplus 21 #ifdef __cplusplus
20 } // extern "C" 22 } // extern "C"
21 23
22 #include <stdlib.h> 24 #include <stdlib.h>
23 #include <limits> 25 #include <limits>
24 #include <new> 26 #include <new>
25 27
26 NEVER_INLINE void FX_OutOfMemoryTerminate(); 28 NEVER_INLINE void FX_OutOfMemoryTerminate();
27 29
28 inline void* FX_SafeRealloc(void* ptr, size_t num_members, size_t member_size) { 30 inline void* FX_SafeRealloc(void* ptr, size_t num_members, size_t member_size) {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void FreeAll(); 103 void FreeAll();
102 104
103 private: 105 private:
104 size_t m_TrunkSize; 106 size_t m_TrunkSize;
105 107
106 void* m_pFirstTrunk; 108 void* m_pFirstTrunk;
107 }; 109 };
108 #endif // __cplusplus 110 #endif // __cplusplus
109 111
110 #endif // CORE_INCLUDE_FXCRT_FX_MEMORY_H_ 112 #endif // CORE_INCLUDE_FXCRT_FX_MEMORY_H_
OLDNEW
« no previous file with comments | « core/include/fxcrt/fx_basic.h ('k') | core/include/fxcrt/fx_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698