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

Unified Diff: runtime/bin/platform.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/main.cc ('k') | runtime/bin/platform_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/platform.cc
diff --git a/runtime/bin/platform.cc b/runtime/bin/platform.cc
index bfe107fc1a6068db0c698b153ee33fce9edd7016..7aa597cc9ebf9bbafb1bf7b3849d88916438b022 100644
--- a/runtime/bin/platform.cc
+++ b/runtime/bin/platform.cc
@@ -17,17 +17,14 @@ void FUNCTION_NAME(Platform_NumberOfProcessors)(Dart_NativeArguments args) {
Dart_SetReturnValue(args, Dart_NewInteger(Platform::NumberOfProcessors()));
}
-
void FUNCTION_NAME(Platform_OperatingSystem)(Dart_NativeArguments args) {
Dart_SetReturnValue(args, DartUtils::NewString(Platform::OperatingSystem()));
}
-
void FUNCTION_NAME(Platform_PathSeparator)(Dart_NativeArguments args) {
Dart_SetReturnValue(args, DartUtils::NewString(File::PathSeparator()));
}
-
void FUNCTION_NAME(Platform_LocalHostname)(Dart_NativeArguments args) {
const intptr_t HOSTNAME_LENGTH = 256;
char hostname[HOSTNAME_LENGTH];
@@ -38,7 +35,6 @@ void FUNCTION_NAME(Platform_LocalHostname)(Dart_NativeArguments args) {
}
}
-
void FUNCTION_NAME(Platform_ExecutableName)(Dart_NativeArguments args) {
if (Platform::GetExecutableName() != NULL) {
Dart_SetReturnValue(
@@ -48,7 +44,6 @@ void FUNCTION_NAME(Platform_ExecutableName)(Dart_NativeArguments args) {
}
}
-
void FUNCTION_NAME(Platform_ResolvedExecutableName)(Dart_NativeArguments args) {
if (Platform::GetResolvedExecutableName() != NULL) {
Dart_SetReturnValue(
@@ -58,7 +53,6 @@ void FUNCTION_NAME(Platform_ResolvedExecutableName)(Dart_NativeArguments args) {
}
}
-
void FUNCTION_NAME(Platform_ExecutableArguments)(Dart_NativeArguments args) {
int end = Platform::GetScriptIndex();
char** argv = Platform::GetArgv();
@@ -73,7 +67,6 @@ void FUNCTION_NAME(Platform_ExecutableArguments)(Dart_NativeArguments args) {
Dart_SetReturnValue(args, result);
}
-
void FUNCTION_NAME(Platform_Environment)(Dart_NativeArguments args) {
intptr_t count = 0;
char** env = Platform::Environment(&count);
@@ -104,12 +97,10 @@ void FUNCTION_NAME(Platform_Environment)(Dart_NativeArguments args) {
}
}
-
void FUNCTION_NAME(Platform_GetVersion)(Dart_NativeArguments args) {
Dart_SetReturnValue(args, Dart_NewStringFromCString(Dart_VersionString()));
}
-
void FUNCTION_NAME(Platform_LocaleName)(Dart_NativeArguments args) {
const char* locale = Platform::LocaleName();
if (locale == NULL) {
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/bin/platform_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698