OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |