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

Side by Side Diff: runtime/bin/main.cc

Issue 154273003: Make std* blocking file-descriptors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update with bug. Created 6 years, 10 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 | « runtime/bin/file_win.cc ('k') | runtime/bin/platform.h » ('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) 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
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 }
OLDNEW
« no previous file with comments | « runtime/bin/file_win.cc ('k') | runtime/bin/platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698