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

Side by Side Diff: runtime/bin/platform.cc

Issue 17406010: Move getters from Options to Platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed Dart_GetType Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/bin/platform_patch.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "bin/platform.h" 5 #include "bin/platform.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 8
9 #include "bin/file.h" 9 #include "bin/file.h"
10 #include "bin/utils.h" 10 #include "bin/utils.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 Platform::FreeEnvironment(env, count); 72 Platform::FreeEnvironment(env, count);
73 Dart_PropagateError(error); 73 Dart_PropagateError(error);
74 } 74 }
75 } 75 }
76 Platform::FreeEnvironment(env, count); 76 Platform::FreeEnvironment(env, count);
77 Dart_SetReturnValue(args, result); 77 Dart_SetReturnValue(args, result);
78 } 78 }
79 Dart_ExitScope(); 79 Dart_ExitScope();
80 } 80 }
81 81
82
83 void FUNCTION_NAME(Platform_GetVersion)(Dart_NativeArguments args) {
84 Dart_EnterScope();
85 Dart_SetReturnValue(args, Dart_NewStringFromCString(Dart_VersionString()));
86 Dart_ExitScope();
87 }
88
82 } // namespace bin 89 } // namespace bin
83 } // namespace dart 90 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/bin/platform_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698