| 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/directory.h" | 5 #include "bin/directory.h" |
| 6 | 6 |
| 7 #include "bin/dartutils.h" | 7 #include "bin/dartutils.h" |
| 8 #include "bin/thread.h" | |
| 9 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 10 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 11 | 10 |
| 12 | 11 |
| 13 namespace dart { | 12 namespace dart { |
| 14 namespace bin { | 13 namespace bin { |
| 15 | 14 |
| 16 void FUNCTION_NAME(Directory_Current)(Dart_NativeArguments args) { | 15 void FUNCTION_NAME(Directory_Current)(Dart_NativeArguments args) { |
| 17 char* current = Directory::Current(); | 16 char* current = Directory::Current(); |
| 18 if (current != NULL) { | 17 if (current != NULL) { |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 if (listing->error()) { | 420 if (listing->error()) { |
| 422 listing->HandleError("Invalid path"); | 421 listing->HandleError("Invalid path"); |
| 423 listing->HandleDone(); | 422 listing->HandleDone(); |
| 424 } else { | 423 } else { |
| 425 while (ListNext(listing)) {} | 424 while (ListNext(listing)) {} |
| 426 } | 425 } |
| 427 } | 426 } |
| 428 | 427 |
| 429 } // namespace bin | 428 } // namespace bin |
| 430 } // namespace dart | 429 } // namespace dart |
| OLD | NEW |