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

Unified Diff: runtime/bin/test_extension.c

Issue 16105019: - Fix Windows. (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/test_extension.c
===================================================================
--- runtime/bin/test_extension.c (revision 23494)
+++ runtime/bin/test_extension.c (working copy)
@@ -33,18 +33,18 @@
/* Native resolver for the extension library. */
Dart_NativeFunction ResolveName(Dart_Handle name, int argc) {
- assert(Dart_IsString(name));
- const char* cname;
+ /* assert(Dart_IsString(name)); */
+ const char* c_name;
Dart_Handle check_error;
- check_error = Dart_StringToCString(name, &cname);
+ check_error = Dart_StringToCString(name, &c_name);
if (Dart_IsError(check_error)) {
Dart_PropagateError(check_error);
}
- if ((strcmp("TestExtension_IfNull", cname) == 0) && (argc == 2)) {
+ if ((strcmp("TestExtension_IfNull", c_name) == 0) && (argc == 2)) {
return IfNull;
}
- if ((strcmp("TestExtension_ThrowMeTheBall", cname) == 0) && (argc == 1)) {
+ if ((strcmp("TestExtension_ThrowMeTheBall", c_name) == 0) && (argc == 1)) {
return ThrowMeTheBall;
}
return NULL;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698