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

Unified Diff: bin/file_macos.cc

Issue 8371016: Fix infinite recursion when dealing with cyclic library dependencies. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bin/file_linux.cc ('k') | bin/file_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/file_macos.cc
===================================================================
--- bin/file_macos.cc (revision 651)
+++ bin/file_macos.cc (working copy)
@@ -118,6 +118,16 @@
}
+char* File::GetCanonicalPath(const char* pathname) {
+ char* abs_path = NULL;
+ if (pathname != NULL) {
+ abs_path = realpath(pathname, NULL);
+ assert(abs_path == NULL || IsAbsolutePath(abs_path));
+ }
+ return abs_path;
+}
+
+
const char* File::PathSeparator() {
return "/";
}
« no previous file with comments | « bin/file_linux.cc ('k') | bin/file_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698