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: base/allocator/generic_allocators.cc

Issue 434067: Branch the files in the shim layer that switches between the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « base/allocator/allocator_unittests.cc ('k') | base/allocator/prep_libc.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
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 // When possible, we implement allocator functions on top of the basic 5 // When possible, we implement allocator functions on top of the basic
6 // low-level functions malloc() and free(). This way, including a new 6 // low-level functions malloc() and free(). This way, including a new
7 // allocator is as simple as providing just a small interface. 7 // allocator is as simple as providing just a small interface.
8 // 8 //
9 // As such, this file should not contain any allocator-specific code. 9 // As such, this file should not contain any allocator-specific code.
10 10
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 free(ptr); 126 free(ptr);
127 } 127 }
128 128
129 void* _calloc_dbg(size_t n, size_t size, int, const char*, int) { 129 void* _calloc_dbg(size_t n, size_t size, int, const char*, int) {
130 return calloc(n, size); 130 return calloc(n, size);
131 } 131 }
132 #endif // NDEBUG 132 #endif // NDEBUG
133 133
134 #endif // WIN32 134 #endif // WIN32
135 135
136 } // extern C 136 } // extern C
137 137
OLDNEW
« no previous file with comments | « base/allocator/allocator_unittests.cc ('k') | base/allocator/prep_libc.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698