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

Unified Diff: runtime/bin/socket.cc

Issue 15689013: - Modify dart_api.h to be a proper C API. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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/secure_socket.cc ('k') | runtime/bin/test_extension.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket.cc
===================================================================
--- runtime/bin/socket.cc (revision 23447)
+++ runtime/bin/socket.cc (working copy)
@@ -75,7 +75,7 @@
Dart_ThrowException(error);
}
int len = SocketAddress::GetAddrLength(raw);
- Dart_Handle result = Dart_NewTypedData(kUint8, len);
+ Dart_Handle result = Dart_NewTypedData(Dart_TypedData_kUint8, len);
if (Dart_IsError(result)) Dart_PropagateError(result);
Dart_ListSetAsBytes(result, 0, reinterpret_cast<uint8_t *>(&raw), len);
Dart_SetReturnValue(args, result);
@@ -491,7 +491,7 @@
Dart_CObject* message) {
CObject* response = CObject::IllegalArgumentError();
CObjectArray request(message);
- if (message->type == Dart_CObject::kArray) {
+ if (message->type == Dart_CObject_kArray) {
if (request.Length() > 1 && request[0]->IsInt32()) {
CObjectInt32 request_type(request[0]);
switch (request_type.Value()) {
« no previous file with comments | « runtime/bin/secure_socket.cc ('k') | runtime/bin/test_extension.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698