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

Unified Diff: runtime/vm/port_test.cc

Issue 8761007: Stop using void* types in the dart embedding api. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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/vm/port.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/port_test.cc
===================================================================
--- runtime/vm/port_test.cc (revision 1987)
+++ runtime/vm/port_test.cc (working copy)
@@ -183,14 +183,14 @@
// End-of-test marker.
static const intptr_t kEOT = 0xFFFF;
-void* AllocIntData(intptr_t payload) {
+Dart_Message AllocIntData(intptr_t payload) {
intptr_t* result = reinterpret_cast<intptr_t*>(malloc(sizeof(payload)));
*result = payload;
- return result;
+ return reinterpret_cast<Dart_Message>(result);
}
-intptr_t GetIntData(void* data) {
+intptr_t GetIntData(Dart_Message data) {
return *reinterpret_cast<intptr_t*>(data);
}
« no previous file with comments | « runtime/vm/port.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698