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

Unified Diff: runtime/bin/platform_win.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_unsupported.cc ('k') | runtime/bin/process.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/platform_win.cc
diff --git a/runtime/bin/platform_win.cc b/runtime/bin/platform_win.cc
index b0e8eabb1e78c9126fe2bcca2f76107c7c18a0f3..0c35910e9ca47d8b52d67df914d62c7a9d9c2795 100644
--- a/runtime/bin/platform_win.cc
+++ b/runtime/bin/platform_win.cc
@@ -181,29 +181,24 @@ bool Platform::Initialize() {
return true;
}
-
int Platform::NumberOfProcessors() {
SYSTEM_INFO info;
GetSystemInfo(&info);
return info.dwNumberOfProcessors;
}
-
const char* Platform::OperatingSystem() {
return "windows";
}
-
const char* Platform::LibraryPrefix() {
return "";
}
-
const char* Platform::LibraryExtension() {
return "dll";
}
-
const char* Platform::LocaleName() {
wchar_t locale_name[LOCALE_NAME_MAX_LENGTH];
int result = GetUserDefaultLocaleName(locale_name, LOCALE_NAME_MAX_LENGTH);
@@ -213,7 +208,6 @@ const char* Platform::LocaleName() {
return StringUtilsWin::WideToUtf8(locale_name);
}
-
bool Platform::LocalHostname(char* buffer, intptr_t buffer_length) {
#if defined(DART_IO_DISABLED) || defined(PLATFORM_DISABLE_SOCKET)
return false;
@@ -225,7 +219,6 @@ bool Platform::LocalHostname(char* buffer, intptr_t buffer_length) {
#endif
}
-
char** Platform::Environment(intptr_t* count) {
wchar_t* strings = GetEnvironmentStringsW();
if (strings == NULL) {
@@ -258,12 +251,10 @@ char** Platform::Environment(intptr_t* count) {
return result;
}
-
const char* Platform::GetExecutableName() {
return executable_name_;
}
-
const char* Platform::ResolveExecutablePath() {
// GetModuleFileNameW cannot directly provide information on the
// required buffer size, so start out with a buffer large enough to
@@ -284,7 +275,6 @@ const char* Platform::ResolveExecutablePath() {
return canon_path;
}
-
void Platform::Exit(int exit_code) {
// TODO(zra): Remove once VM shuts down cleanly.
::dart::private_flag_windows_run_tls_destructors = false;
« no previous file with comments | « runtime/bin/platform_unsupported.cc ('k') | runtime/bin/process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698