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

Side by Side Diff: bin/file_win.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « bin/file_macos.cc ('k') | bin/main.cc » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 <fcntl.h> 5 #include <fcntl.h>
6 #include <io.h> 6 #include <io.h>
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <string.h> 8 #include <string.h>
9 #include <sys/stat.h> 9 #include <sys/stat.h>
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 bool File::IsAbsolutePath(const char* pathname) { 114 bool File::IsAbsolutePath(const char* pathname) {
115 // Should we consider network paths? 115 // Should we consider network paths?
116 if (pathname == NULL) return false; 116 if (pathname == NULL) return false;
117 return (strlen(pathname) > 2) && 117 return (strlen(pathname) > 2) &&
118 (pathname[1] == ':') && 118 (pathname[1] == ':') &&
119 (pathname[2] == '\\'); 119 (pathname[2] == '\\');
120 } 120 }
121 121
122 122
123 char* File::GetCanonicalPath(const char* pathname) {
124 UNIMPLEMENTED();
125 return pathname;
126 }
127
128
123 const char* File::PathSeparator() { 129 const char* File::PathSeparator() {
124 return "\\"; 130 return "\\";
125 } 131 }
126 132
127 133
128 const char* File::StringEscapedPathSeparator() { 134 const char* File::StringEscapedPathSeparator() {
129 return "\\\\"; 135 return "\\\\";
130 } 136 }
OLDNEW
« no previous file with comments | « bin/file_macos.cc ('k') | bin/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698