| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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/dartutils.h" | 5 #include "bin/dartutils.h" |
| 6 #include "bin/process.h" | 6 #include "bin/process.h" |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 | 9 |
| 10 void FUNCTION_NAME(Process_Start)(Dart_NativeArguments args) { | 10 void FUNCTION_NAME(Process_Start)(Dart_NativeArguments args) { |
| 11 Dart_EnterScope(); | 11 Dart_EnterScope(); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 } | 107 } |
| 108 | 108 |
| 109 | 109 |
| 110 void FUNCTION_NAME(Process_Kill)(Dart_NativeArguments args) { | 110 void FUNCTION_NAME(Process_Kill)(Dart_NativeArguments args) { |
| 111 Dart_EnterScope(); | 111 Dart_EnterScope(); |
| 112 intptr_t pid = DartUtils::GetIntegerValue(Dart_GetNativeArgument(args, 1)); | 112 intptr_t pid = DartUtils::GetIntegerValue(Dart_GetNativeArgument(args, 1)); |
| 113 bool success = Process::Kill(pid); | 113 bool success = Process::Kill(pid); |
| 114 Dart_SetReturnValue(args, Dart_NewBoolean(success)); | 114 Dart_SetReturnValue(args, Dart_NewBoolean(success)); |
| 115 Dart_ExitScope(); | 115 Dart_ExitScope(); |
| 116 } | 116 } |
| 117 |
| 118 |
| 119 void FUNCTION_NAME(Process_Exit)(Dart_NativeArguments args) { |
| 120 Dart_EnterScope(); |
| 121 intptr_t pid = DartUtils::GetIntegerValue(Dart_GetNativeArgument(args, 1)); |
| 122 Process::Exit(pid); |
| 123 Dart_ExitScope(); |
| 124 } |
| OLD | NEW |