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

Side by Side Diff: base/allocator/unittest_utils.cc

Issue 1538743002: Switch to standard integer types in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS roll too Created 4 years, 11 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 | « base/allocator/allocator_shim_win.cc ('k') | base/at_exit.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 (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 // The unittests need a this in order to link up without pulling in tons 5 // The unittests need a this in order to link up without pulling in tons
6 // of other libraries 6 // of other libraries
7 7
8 #include <config.h> 8 #include <config.h>
9 #include <stddef.h>
9 10
10 inline int snprintf(char* buffer, size_t count, const char* format, ...) { 11 inline int snprintf(char* buffer, size_t count, const char* format, ...) {
11 int result; 12 int result;
12 va_list args; 13 va_list args;
13 va_start(args, format); 14 va_start(args, format);
14 result = _vsnprintf(buffer, count, format, args); 15 result = _vsnprintf(buffer, count, format, args);
15 va_end(args); 16 va_end(args);
16 return result; 17 return result;
17 } 18 }
18 19
OLDNEW
« no previous file with comments | « base/allocator/allocator_shim_win.cc ('k') | base/at_exit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698