| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium 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 // This is a simple allocator based on the windows heap. | 5 // This is a simple allocator based on the windows heap. |
| 6 | 6 |
| 7 extern "C" { | 7 extern "C" { |
| 8 | 8 |
| 9 HANDLE win_heap; | 9 HANDLE win_heap; |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 return NULL; | 41 return NULL; |
| 42 } | 42 } |
| 43 return HeapReAlloc(win_heap, 0, ptr, size); | 43 return HeapReAlloc(win_heap, 0, ptr, size); |
| 44 } | 44 } |
| 45 | 45 |
| 46 size_t win_heap_msize(void* ptr) { | 46 size_t win_heap_msize(void* ptr) { |
| 47 return HeapSize(win_heap, 0, ptr); | 47 return HeapSize(win_heap, 0, ptr); |
| 48 } | 48 } |
| 49 | 49 |
| 50 } // extern "C" | 50 } // extern "C" |
| OLD | NEW |