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

Side by Side Diff: runtime/bin/platform.h

Issue 59393003: Always mark stdout and stderr as blocking on exit. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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/main.cc ('k') | runtime/bin/platform_android.cc » ('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 #ifndef BIN_PLATFORM_H_ 5 #ifndef BIN_PLATFORM_H_
6 #define BIN_PLATFORM_H_ 6 #define BIN_PLATFORM_H_
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 9
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 static int GetScriptIndex() { 58 static int GetScriptIndex() {
59 return script_index_; 59 return script_index_;
60 } 60 }
61 static char** GetArgv() { 61 static char** GetArgv() {
62 return argv_; 62 return argv_;
63 } 63 }
64 64
65 static void PrintBlocking(FILE* file, const char* format, ...) 65 static void PrintBlocking(FILE* file, const char* format, ...)
66 PRINTF_ATTRIBUTE(2, 3); 66 PRINTF_ATTRIBUTE(2, 3);
67 67
68 // Perform platform-specific cleanups.
69 static void Cleanup();
70
68 private: 71 private:
69 static const char* executable_name_; 72 static const char* executable_name_;
70 static const char* package_root_; 73 static const char* package_root_;
71 static int script_index_; 74 static int script_index_;
72 static char** argv_; // VM flags are argv_[1 ... script_index_ - 1] 75 static char** argv_; // VM flags are argv_[1 ... script_index_ - 1]
73 76
74 DISALLOW_ALLOCATION(); 77 DISALLOW_ALLOCATION();
75 DISALLOW_IMPLICIT_CONSTRUCTORS(Platform); 78 DISALLOW_IMPLICIT_CONSTRUCTORS(Platform);
76 }; 79 };
77 80
78 } // namespace bin 81 } // namespace bin
79 } // namespace dart 82 } // namespace dart
80 83
81 #endif // BIN_PLATFORM_H_ 84 #endif // BIN_PLATFORM_H_
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/bin/platform_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698