Index: runtime/bin/stdio.dart |
diff --git a/runtime/bin/builtin.dart b/runtime/bin/stdio.dart |
similarity index 62% |
copy from runtime/bin/builtin.dart |
copy to runtime/bin/stdio.dart |
index 3e8d5d55ee6e7a50eb53439de4354b32f4c5dbee..4f154fbe6d36e39da00a75e65a51fbd7205315da 100644 |
--- a/runtime/bin/builtin.dart |
+++ b/runtime/bin/stdio.dart |
@@ -1,22 +1,7 @@ |
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-#library("builtin"); |
-#import("dart:nativewrappers"); |
-#import("dart:coreimpl"); |
- |
-void print(arg) { |
- _Logger._printString(arg.toString()); |
-} |
- |
-void exit(int status) { |
- if (status is !int) { |
- throw new IllegalArgumentException("int status expected"); |
- } |
- _exit(status); |
-} |
- |
Socket _stdin; |
InputStream get stdin() { |
if (_stdin == null) { |
@@ -44,10 +29,4 @@ OutputStream get stderr() { |
return _stderr.outputStream; |
} |
-_exit(int status) native "Exit"; |
- |
_getStdioHandle(Socket socket, int num) native "Socket_GetStdioHandle"; |
- |
-class _Logger { |
- static void _printString(String s) native "Logger_PrintString"; |
-} |