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

Unified Diff: runtime/bin/stdio_linux.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_fuchsia.cc ('k') | runtime/bin/stdio_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/stdio_linux.cc
diff --git a/runtime/bin/stdio_linux.cc b/runtime/bin/stdio_linux.cc
index d3aab28ae319fcab00c11bbd184a95107e465966..5c37ccf5e6ba24e222892becd881343c5dd01f5a 100644
--- a/runtime/bin/stdio_linux.cc
+++ b/runtime/bin/stdio_linux.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_fuchsia.cc ('k') | runtime/bin/stdio_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698