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

Side by Side Diff: vm/os.h

Issue 10792019: Address some leftover review comments from previous CL. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « vm/object.cc ('k') | vm/os_linux.cc » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 #ifndef VM_OS_H_ 5 #ifndef VM_OS_H_
6 #define VM_OS_H_ 6 #define VM_OS_H_
7 7
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 9
10 // Forward declarations. 10 // Forward declarations.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 static int VSNPrint(char* str, size_t size, 81 static int VSNPrint(char* str, size_t size,
82 const char* format, 82 const char* format,
83 va_list args); 83 va_list args);
84 84
85 // Converts a C string which represents a valid dart integer into a 64 bit 85 // Converts a C string which represents a valid dart integer into a 64 bit
86 // value. 86 // value.
87 // Returns false if it is unable to convert the string to a 64 bit value, 87 // Returns false if it is unable to convert the string to a 64 bit value,
88 // the failure could be because of underflow/overflow or invalid characters. 88 // the failure could be because of underflow/overflow or invalid characters.
89 // On success the function returns true and 'value' contains the converted 89 // On success the function returns true and 'value' contains the converted
90 // value. 90 // value.
91 static bool StringToInteger(const char* str, int64_t* value); 91 static bool StringToInt64(const char* str, int64_t* value);
92 92
93 // Initialize the OS class. 93 // Initialize the OS class.
94 static void InitOnce(); 94 static void InitOnce();
95 95
96 // Shut down the OS class. 96 // Shut down the OS class.
97 static void Shutdown(); 97 static void Shutdown();
98 98
99 static void Abort(); 99 static void Abort();
100 100
101 static void Exit(int code); 101 static void Exit(int code);
102 }; 102 };
103 103
104 } // namespace dart 104 } // namespace dart
105 105
106 #endif // VM_OS_H_ 106 #endif // VM_OS_H_
OLDNEW
« no previous file with comments | « vm/object.cc ('k') | vm/os_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698