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