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

Unified Diff: runtime/bin/stdio_android.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/stdio.cc ('k') | runtime/bin/stdio_fuchsia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/stdio_android.cc
diff --git a/runtime/bin/stdio_android.cc b/runtime/bin/stdio_android.cc
index e6b62501dab8d92405160c2f03bd07fa852599b3..d4a48cb82ed83f6dc2e6aeac96014a1e542b1fb1 100644
--- a/runtime/bin/stdio_android.cc
+++ b/runtime/bin/stdio_android.cc
@@ -28,7 +28,6 @@ bool Stdin::ReadByte(int* byte) {
return true;
}
-
bool Stdin::GetEchoMode(bool* enabled) {
struct termios term;
int status = NO_RETRY_EXPECTED(tcgetattr(STDIN_FILENO, &term));
@@ -39,7 +38,6 @@ bool Stdin::GetEchoMode(bool* enabled) {
return true;
}
-
bool Stdin::SetEchoMode(bool enabled) {
struct termios term;
int status = NO_RETRY_EXPECTED(tcgetattr(STDIN_FILENO, &term));
@@ -55,7 +53,6 @@ bool Stdin::SetEchoMode(bool enabled) {
return (status == 0);
}
-
bool Stdin::GetLineMode(bool* enabled) {
struct termios term;
int status = NO_RETRY_EXPECTED(tcgetattr(STDIN_FILENO, &term));
@@ -66,7 +63,6 @@ bool Stdin::GetLineMode(bool* enabled) {
return true;
}
-
bool Stdin::SetLineMode(bool enabled) {
struct termios term;
int status = NO_RETRY_EXPECTED(tcgetattr(STDIN_FILENO, &term));
@@ -82,7 +78,6 @@ bool Stdin::SetLineMode(bool enabled) {
return (status == 0);
}
-
static bool TermHasXTerm() {
const char* term = getenv("TERM");
if (term == NULL) {
@@ -91,13 +86,11 @@ static bool TermHasXTerm() {
return strstr(term, "xterm") != NULL;
}
-
bool Stdin::AnsiSupported(bool* supported) {
*supported = isatty(STDIN_FILENO) && TermHasXTerm();
return true;
}
-
bool Stdout::GetTerminalSize(intptr_t fd, int size[2]) {
struct winsize w;
int status = NO_RETRY_EXPECTED(ioctl(fd, TIOCGWINSZ, &w));
@@ -109,7 +102,6 @@ bool Stdout::GetTerminalSize(intptr_t fd, int size[2]) {
return false;
}
-
bool Stdout::AnsiSupported(intptr_t fd, bool* supported) {
*supported = isatty(fd) && TermHasXTerm();
return true;
« no previous file with comments | « runtime/bin/stdio.cc ('k') | runtime/bin/stdio_fuchsia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698