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

Side by Side Diff: src/utils/SkRTConf.cpp

Issue 1313203003: Remove include of stdlib.h from SkTypes.h. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up qsort conversion. Created 5 years, 3 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 | « src/utils/SkParse.cpp ('k') | tests/PathOpsAngleTest.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 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkRTConf.h" 8 #include "SkRTConf.h"
9 #include "SkOSFile.h" 9 #include "SkOSFile.h"
10 10
11 #include <stdlib.h>
12
11 SkRTConfRegistry::SkRTConfRegistry(): fConfs(100) { 13 SkRTConfRegistry::SkRTConfRegistry(): fConfs(100) {
12 14
13 SkFILE *fp = sk_fopen(configFileLocation(), kRead_SkFILE_Flag); 15 SkFILE *fp = sk_fopen(configFileLocation(), kRead_SkFILE_Flag);
14 16
15 if (!fp) { 17 if (!fp) {
16 return; 18 return;
17 } 19 }
18 20
19 char line[1024]; 21 char line[1024];
20 22
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 template void SkRTConfRegistry::set(const char *name, int value, bool); 316 template void SkRTConfRegistry::set(const char *name, int value, bool);
315 template void SkRTConfRegistry::set(const char *name, unsigned int value, bool); 317 template void SkRTConfRegistry::set(const char *name, unsigned int value, bool);
316 template void SkRTConfRegistry::set(const char *name, float value, bool); 318 template void SkRTConfRegistry::set(const char *name, float value, bool);
317 template void SkRTConfRegistry::set(const char *name, double value, bool); 319 template void SkRTConfRegistry::set(const char *name, double value, bool);
318 template void SkRTConfRegistry::set(const char *name, char * value, bool); 320 template void SkRTConfRegistry::set(const char *name, char * value, bool);
319 321
320 SkRTConfRegistry &skRTConfRegistry() { 322 SkRTConfRegistry &skRTConfRegistry() {
321 static SkRTConfRegistry r; 323 static SkRTConfRegistry r;
322 return r; 324 return r;
323 } 325 }
OLDNEW
« no previous file with comments | « src/utils/SkParse.cpp ('k') | tests/PathOpsAngleTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698