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

Unified Diff: runtime/bin/platform_macos.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_linux.cc ('k') | runtime/bin/platform_unsupported.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/platform_macos.cc
diff --git a/runtime/bin/platform_macos.cc b/runtime/bin/platform_macos.cc
index 4dbdc7ce2a9c121f8d9bd4b1d0e887c0449269f7..2745df6490ee3a1d6f64b7e1f7ebfac6f0693b53 100644
--- a/runtime/bin/platform_macos.cc
+++ b/runtime/bin/platform_macos.cc
@@ -35,7 +35,6 @@ static void segv_handler(int signal, siginfo_t* siginfo, void* context) {
abort();
}
-
bool Platform::Initialize() {
// Turn off the signal handler for SIGPIPE as it causes the process
// to terminate on writing to a closed pipe. Without the signal
@@ -68,7 +67,6 @@ bool Platform::Initialize() {
return true;
}
-
int Platform::NumberOfProcessors() {
int32_t cpus = -1;
size_t cpus_length = sizeof(cpus);
@@ -80,7 +78,6 @@ int Platform::NumberOfProcessors() {
}
}
-
const char* Platform::OperatingSystem() {
#if HOST_OS_IOS
return "ios";
@@ -89,17 +86,14 @@ const char* Platform::OperatingSystem() {
#endif
}
-
const char* Platform::LibraryPrefix() {
return "lib";
}
-
const char* Platform::LibraryExtension() {
return "dylib";
}
-
static const char* GetLocaleName() {
CFLocaleRef locale = CFLocaleCopyCurrent();
CFStringRef locale_string = CFLocaleGetIdentifier(locale);
@@ -117,7 +111,6 @@ static const char* GetLocaleName() {
return result;
}
-
static const char* GetPreferredLanguageName() {
CFArrayRef languages = CFLocaleCopyPreferredLanguages();
CFIndex languages_length = CFArrayGetCount(languages);
@@ -144,7 +137,6 @@ static const char* GetPreferredLanguageName() {
return result;
}
-
const char* Platform::LocaleName() {
// First see if there is a preferred language. If not, return the
// current locale name.
@@ -152,12 +144,10 @@ const char* Platform::LocaleName() {
return (preferred_language != NULL) ? preferred_language : GetLocaleName();
}
-
bool Platform::LocalHostname(char* buffer, intptr_t buffer_length) {
return gethostname(buffer, buffer_length) == 0;
}
-
char** Platform::Environment(intptr_t* count) {
#if HOST_OS_IOS
// TODO(zra,chinmaygarde): On iOS, environment variables are seldom used. Wire
@@ -191,12 +181,10 @@ char** Platform::Environment(intptr_t* count) {
#endif
}
-
const char* Platform::GetExecutableName() {
return executable_name_;
}
-
const char* Platform::ResolveExecutablePath() {
// Get the required length of the buffer.
uint32_t path_size = 0;
@@ -213,7 +201,6 @@ const char* Platform::ResolveExecutablePath() {
return canon_path;
}
-
void Platform::Exit(int exit_code) {
exit(exit_code);
}
« no previous file with comments | « runtime/bin/platform_linux.cc ('k') | runtime/bin/platform_unsupported.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698