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

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

Issue 2480793002: clang-format runtime/bin (Closed)
Patch Set: Created 4 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
« no previous file with comments | « runtime/bin/process_macos.cc ('k') | runtime/bin/process_win.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 #if defined(DART_IO_DISABLED) 5 #if defined(DART_IO_DISABLED)
6 6
7 #include "bin/process.h" 7 #include "bin/process.h"
8 8
9 #include "bin/builtin.h" 9 #include "bin/builtin.h"
10 #include "bin/dartutils.h" 10 #include "bin/dartutils.h"
11 #include "include/dart_api.h" 11 #include "include/dart_api.h"
12 12
13 namespace dart { 13 namespace dart {
14 namespace bin { 14 namespace bin {
15 15
16 int Process::global_exit_code_ = 0; 16 int Process::global_exit_code_ = 0;
17 Mutex* Process::global_exit_code_mutex_ = new Mutex(); 17 Mutex* Process::global_exit_code_mutex_ = new Mutex();
18 Process::ExitHook Process::exit_hook_ = NULL; 18 Process::ExitHook Process::exit_hook_ = NULL;
19 19
20 void Process::TerminateExitCodeHandler() { 20 void Process::TerminateExitCodeHandler() {}
21 }
22 21
23 22
24 void FUNCTION_NAME(Process_Start)(Dart_NativeArguments args) { 23 void FUNCTION_NAME(Process_Start)(Dart_NativeArguments args) {
25 Dart_ThrowException(DartUtils::NewInternalError( 24 Dart_ThrowException(
26 "Process is not supported on this platform")); 25 DartUtils::NewInternalError("Process is not supported on this platform"));
27 } 26 }
28 27
29 28
30 void FUNCTION_NAME(Process_Wait)(Dart_NativeArguments args) { 29 void FUNCTION_NAME(Process_Wait)(Dart_NativeArguments args) {
31 Dart_ThrowException(DartUtils::NewInternalError( 30 Dart_ThrowException(
32 "Process is not supported on this platform")); 31 DartUtils::NewInternalError("Process is not supported on this platform"));
33 } 32 }
34 33
35 34
36 void FUNCTION_NAME(Process_KillPid)(Dart_NativeArguments args) { 35 void FUNCTION_NAME(Process_KillPid)(Dart_NativeArguments args) {
37 Dart_ThrowException(DartUtils::NewInternalError( 36 Dart_ThrowException(
38 "Process is not supported on this platform")); 37 DartUtils::NewInternalError("Process is not supported on this platform"));
39 } 38 }
40 39
41 40
42 void FUNCTION_NAME(Process_Exit)(Dart_NativeArguments args) { 41 void FUNCTION_NAME(Process_Exit)(Dart_NativeArguments args) {
43 Dart_ThrowException(DartUtils::NewInternalError( 42 Dart_ThrowException(
44 "Process is not supported on this platform")); 43 DartUtils::NewInternalError("Process is not supported on this platform"));
45 } 44 }
46 45
47 46
48 void FUNCTION_NAME(Process_SetExitCode)(Dart_NativeArguments args) { 47 void FUNCTION_NAME(Process_SetExitCode)(Dart_NativeArguments args) {
49 Dart_ThrowException(DartUtils::NewInternalError( 48 Dart_ThrowException(
50 "Process is not supported on this platform")); 49 DartUtils::NewInternalError("Process is not supported on this platform"));
51 } 50 }
52 51
53 52
54 void FUNCTION_NAME(Process_GetExitCode)(Dart_NativeArguments args) { 53 void FUNCTION_NAME(Process_GetExitCode)(Dart_NativeArguments args) {
55 Dart_ThrowException(DartUtils::NewInternalError( 54 Dart_ThrowException(
56 "Process is not supported on this platform")); 55 DartUtils::NewInternalError("Process is not supported on this platform"));
57 } 56 }
58 57
59 58
60 void FUNCTION_NAME(Process_Sleep)(Dart_NativeArguments args) { 59 void FUNCTION_NAME(Process_Sleep)(Dart_NativeArguments args) {
61 Dart_ThrowException(DartUtils::NewInternalError( 60 Dart_ThrowException(
62 "Process is not supported on this platform")); 61 DartUtils::NewInternalError("Process is not supported on this platform"));
63 } 62 }
64 63
65 64
66 void FUNCTION_NAME(Process_Pid)(Dart_NativeArguments args) { 65 void FUNCTION_NAME(Process_Pid)(Dart_NativeArguments args) {
67 Dart_ThrowException(DartUtils::NewInternalError( 66 Dart_ThrowException(
68 "Process is not supported on this platform")); 67 DartUtils::NewInternalError("Process is not supported on this platform"));
69 } 68 }
70 69
71 70
72 void FUNCTION_NAME(Process_SetSignalHandler)(Dart_NativeArguments args) { 71 void FUNCTION_NAME(Process_SetSignalHandler)(Dart_NativeArguments args) {
73 Dart_ThrowException(DartUtils::NewInternalError( 72 Dart_ThrowException(
74 "Process is not supported on this platform")); 73 DartUtils::NewInternalError("Process is not supported on this platform"));
75 } 74 }
76 75
77 76
78 void FUNCTION_NAME(Process_ClearSignalHandler)(Dart_NativeArguments args) { 77 void FUNCTION_NAME(Process_ClearSignalHandler)(Dart_NativeArguments args) {
79 Dart_ThrowException(DartUtils::NewInternalError( 78 Dart_ThrowException(
80 "Process is not supported on this platform")); 79 DartUtils::NewInternalError("Process is not supported on this platform"));
81 } 80 }
82 81
83 82
84 void FUNCTION_NAME(SystemEncodingToString)(Dart_NativeArguments args) { 83 void FUNCTION_NAME(SystemEncodingToString)(Dart_NativeArguments args) {
85 Dart_ThrowException(DartUtils::NewInternalError( 84 Dart_ThrowException(
86 "Process is not supported on this platform")); 85 DartUtils::NewInternalError("Process is not supported on this platform"));
87 } 86 }
88 87
89 88
90 void FUNCTION_NAME(StringToSystemEncoding)(Dart_NativeArguments args) { 89 void FUNCTION_NAME(StringToSystemEncoding)(Dart_NativeArguments args) {
91 Dart_ThrowException(DartUtils::NewInternalError( 90 Dart_ThrowException(
92 "Process is not supported on this platform")); 91 DartUtils::NewInternalError("Process is not supported on this platform"));
93 } 92 }
94 93
95 } // namespace bin 94 } // namespace bin
96 } // namespace dart 95 } // namespace dart
97 96
98 #endif // !defined(DART_IO_DISABLED) 97 #endif // !defined(DART_IO_DISABLED)
OLDNEW
« no previous file with comments | « runtime/bin/process_macos.cc ('k') | runtime/bin/process_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698