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

Side by Side Diff: bin/file_win.cc

Issue 10280003: Set up a variable so that the compiler script can be imported using an import map. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 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
OLDNEW
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/file.h" 5 #include "bin/file.h"
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <io.h> 8 #include <io.h>
9 #include <stdio.h> 9 #include <stdio.h>
10 #include <string.h> 10 #include <string.h>
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 file_part[-1] = '\0'; 208 file_part[-1] = '\0';
209 return path; 209 return path;
210 } 210 }
211 211
212 212
213 const char* File::PathSeparator() { 213 const char* File::PathSeparator() {
214 return "\\"; 214 return "\\";
215 } 215 }
216 216
217 217
218 char File::PathSeparatorCharacter() {
219 return '\\';
220 }
221
222
218 const char* File::StringEscapedPathSeparator() { 223 const char* File::StringEscapedPathSeparator() {
219 return "\\\\"; 224 return "\\\\";
220 } 225 }
221 226
222 227
223 File::StdioHandleType File::GetStdioHandleType(int fd) { 228 File::StdioHandleType File::GetStdioHandleType(int fd) {
224 // Treat all stdio handles as pipes. The Windows event handler and 229 // Treat all stdio handles as pipes. The Windows event handler and
225 // socket code will handle the different handle types. 230 // socket code will handle the different handle types.
226 return kPipe; 231 return kPipe;
227 } 232 }
OLDNEW
« no previous file with comments | « bin/file_macos.cc ('k') | bin/run_vm_tests.cc » ('j') | vm/benchmark_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698