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

Unified Diff: runtime/bin/platform_fuchsia.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/platform_android.cc ('k') | runtime/bin/platform_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/platform_fuchsia.cc
diff --git a/runtime/bin/platform_fuchsia.cc b/runtime/bin/platform_fuchsia.cc
index cf6e52377b426128e1b6a46696d208fab55c363c..0a14909a621f43e9d2746a0f08c3fa9e3e2fc603 100644
--- a/runtime/bin/platform_fuchsia.cc
+++ b/runtime/bin/platform_fuchsia.cc
@@ -29,27 +29,22 @@ bool Platform::Initialize() {
return true;
}
-
int Platform::NumberOfProcessors() {
return sysconf(_SC_NPROCESSORS_CONF);
}
-
const char* Platform::OperatingSystem() {
return "fuchsia";
}
-
const char* Platform::LibraryPrefix() {
return "lib";
}
-
const char* Platform::LibraryExtension() {
return "so";
}
-
const char* Platform::LocaleName() {
char* lang = getenv("LANG");
if (lang == NULL) {
@@ -58,12 +53,10 @@ const char* Platform::LocaleName() {
return lang;
}
-
bool Platform::LocalHostname(char* buffer, intptr_t buffer_length) {
return gethostname(buffer, buffer_length) == 0;
}
-
char** Platform::Environment(intptr_t* count) {
// Using environ directly is only safe as long as we do not
// provide access to modifying environment variables.
@@ -81,7 +74,6 @@ char** Platform::Environment(intptr_t* count) {
return result;
}
-
const char* Platform::GetExecutableName() {
if (executable_name_ != NULL) {
return executable_name_;
@@ -95,7 +87,6 @@ const char* Platform::GetExecutableName() {
return name;
}
-
const char* Platform::ResolveExecutablePath() {
const char* executable_name = Platform::GetExecutableName();
if (executable_name == NULL) {
@@ -132,7 +123,6 @@ const char* Platform::ResolveExecutablePath() {
return NULL;
}
-
void Platform::Exit(int exit_code) {
exit(exit_code);
}
« no previous file with comments | « runtime/bin/platform_android.cc ('k') | runtime/bin/platform_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698