53374c3b99
This CL adds targets to the GN build that build the standalone Dart VM without the observatory, and with dart:io enabled but with most of the functionality stubbed out as UNIMPLEMENTED(). It also adds a simple eventhandler for Fuchsia for implementing Timers. R=asiva@google.com, johnmccutchan@google.com Review URL: https://codereview.chromium.org/2168193002 .
54 lines
903 B
C++
54 lines
903 B
C++
// Copyright (c) 2016, 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.
|
|
|
|
#if !defined(DART_IO_DISABLED)
|
|
|
|
#include "platform/globals.h"
|
|
#if defined(TARGET_OS_FUCHSIA)
|
|
|
|
#include "bin/stdio.h"
|
|
|
|
namespace dart {
|
|
namespace bin {
|
|
|
|
int Stdin::ReadByte() {
|
|
UNIMPLEMENTED();
|
|
return -1;
|
|
}
|
|
|
|
|
|
bool Stdin::GetEchoMode() {
|
|
UNIMPLEMENTED();
|
|
return false;
|
|
}
|
|
|
|
|
|
void Stdin::SetEchoMode(bool enabled) {
|
|
UNIMPLEMENTED();
|
|
}
|
|
|
|
|
|
bool Stdin::GetLineMode() {
|
|
UNIMPLEMENTED();
|
|
return false;
|
|
}
|
|
|
|
|
|
void Stdin::SetLineMode(bool enabled) {
|
|
UNIMPLEMENTED();
|
|
}
|
|
|
|
|
|
bool Stdout::GetTerminalSize(intptr_t fd, int size[2]) {
|
|
UNIMPLEMENTED();
|
|
return false;
|
|
}
|
|
|
|
} // namespace bin
|
|
} // namespace dart
|
|
|
|
#endif // defined(TARGET_OS_FUCHSIA)
|
|
|
|
#endif // !defined(DART_IO_DISABLED)
|