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

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

Issue 1747123002: Fix and enable lint checks. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp » ('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"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « core/include/fxcrt/fx_basic.h ('k') | core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698