OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "bin/dartutils.h" | 5 #include "bin/dartutils.h" |
6 | 6 |
7 #include "bin/file.h" | 7 #include "bin/file.h" |
| 8 #include "platform/assert.h" |
8 #include "platform/globals.h" | 9 #include "platform/globals.h" |
9 | 10 |
10 const char* DartUtils::kDartScheme = "dart:"; | 11 const char* DartUtils::kDartScheme = "dart:"; |
11 const char* DartUtils::kBuiltinLibURL = "dart:builtin"; | 12 const char* DartUtils::kBuiltinLibURL = "dart:builtin"; |
12 const char* DartUtils::kCoreLibURL = "dart:core"; | 13 const char* DartUtils::kCoreLibURL = "dart:core"; |
13 const char* DartUtils::kCoreImplLibURL = "dart:coreimpl"; | 14 const char* DartUtils::kCoreImplLibURL = "dart:coreimpl"; |
14 const char* DartUtils::kCoreNativeWrappersLibURL = "dart:nativewrappers"; | 15 const char* DartUtils::kCoreNativeWrappersLibURL = "dart:nativewrappers"; |
15 const char* DartUtils::kIdFieldName = "_id"; | 16 const char* DartUtils::kIdFieldName = "_id"; |
16 | 17 |
17 | 18 |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 path, File::PathSeparator(), filename); | 214 path, File::PathSeparator(), filename); |
214 | 215 |
215 free(path); | 216 free(path); |
216 char* canonical_filename = File::GetCanonicalPath(absolute_filename); | 217 char* canonical_filename = File::GetCanonicalPath(absolute_filename); |
217 if (canonical_filename == NULL) { | 218 if (canonical_filename == NULL) { |
218 return absolute_filename; | 219 return absolute_filename; |
219 } | 220 } |
220 free(absolute_filename); | 221 free(absolute_filename); |
221 return canonical_filename; | 222 return canonical_filename; |
222 } | 223 } |
OLD | NEW |