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 <stdlib.h> | 5 #include <stdlib.h> |
6 #include <string.h> | 6 #include <string.h> |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 | 8 |
9 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
10 #include "include/dart_debugger_api.h" | 10 #include "include/dart_debugger_api.h" |
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1028 if (environment != NULL) { | 1028 if (environment != NULL) { |
1029 for (HashMap::Entry* p = environment->Start(); | 1029 for (HashMap::Entry* p = environment->Start(); |
1030 p != NULL; | 1030 p != NULL; |
1031 p = environment->Next(p)) { | 1031 p = environment->Next(p)) { |
1032 free(p->key); | 1032 free(p->key); |
1033 free(p->value); | 1033 free(p->value); |
1034 } | 1034 } |
1035 free(environment); | 1035 free(environment); |
1036 } | 1036 } |
1037 | 1037 |
1038 Platform::Cleanup(); | |
1039 | |
1040 exit(Process::GlobalExitCode()); | 1038 exit(Process::GlobalExitCode()); |
1041 } | 1039 } |
1042 | 1040 |
1043 } // namespace bin | 1041 } // namespace bin |
1044 } // namespace dart | 1042 } // namespace dart |
1045 | 1043 |
1046 int main(int argc, char** argv) { | 1044 int main(int argc, char** argv) { |
1047 dart::bin::main(argc, argv); | 1045 dart::bin::main(argc, argv); |
1048 UNREACHABLE(); | 1046 UNREACHABLE(); |
1049 } | 1047 } |
OLD | NEW |