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

Side by Side Diff: runtime/bin/dartutils.h

Issue 27694005: Fix issue 13942 - Dart_Error function invokes OS::VSNPrint with the "format" string containing data… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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/builtin_nolib.cc ('k') | runtime/bin/dartutils.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) 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 #ifndef BIN_DARTUTILS_H_ 5 #ifndef BIN_DARTUTILS_H_
6 #define BIN_DARTUTILS_H_ 6 #define BIN_DARTUTILS_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "include/dart_native_api.h" 9 #include "include/dart_native_api.h"
10 10
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 Dart_Handle os_error); 154 Dart_Handle os_error);
155 155
156 // Create a new Dart String object from a C String. 156 // Create a new Dart String object from a C String.
157 static Dart_Handle NewString(const char* str) { 157 static Dart_Handle NewString(const char* str) {
158 ASSERT(str != NULL); 158 ASSERT(str != NULL);
159 return Dart_NewStringFromUTF8(reinterpret_cast<const uint8_t*>(str), 159 return Dart_NewStringFromUTF8(reinterpret_cast<const uint8_t*>(str),
160 strlen(str)); 160 strlen(str));
161 } 161 }
162 162
163 // Create a new Dart InternalError object with the provided message. 163 // Create a new Dart InternalError object with the provided message.
164 static Dart_Handle NewError(const char* format, ...);
164 static Dart_Handle NewInternalError(const char* message); 165 static Dart_Handle NewInternalError(const char* message);
165 166
166 static bool SetOriginalWorkingDirectory(); 167 static bool SetOriginalWorkingDirectory();
167 168
168 static const char* MapLibraryUrl(CommandLineOptions* url_mapping, 169 static const char* MapLibraryUrl(CommandLineOptions* url_mapping,
169 const char* url_string); 170 const char* url_string);
170 171
171 static Dart_Handle SetWorkingDirectory(Dart_Handle builtin_lib); 172 static Dart_Handle SetWorkingDirectory(Dart_Handle builtin_lib);
172 173
173 static Dart_Handle ResolveScriptUri(Dart_Handle script_uri, 174 static Dart_Handle ResolveScriptUri(Dart_Handle script_uri,
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 } 519 }
519 520
520 private: 521 private:
521 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); 522 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array);
522 }; 523 };
523 524
524 } // namespace bin 525 } // namespace bin
525 } // namespace dart 526 } // namespace dart
526 527
527 #endif // BIN_DARTUTILS_H_ 528 #endif // BIN_DARTUTILS_H_
OLDNEW
« no previous file with comments | « runtime/bin/builtin_nolib.cc ('k') | runtime/bin/dartutils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698