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

Unified Diff: samples/simple_todo/simple_todo_main.cc

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 11 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 | « samples/simple_todo/java/TodoView.java ('k') | samples/simple_todo/simple_todo_service_tests.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/simple_todo/simple_todo_main.cc
diff --git a/samples/simple_todo/simple_todo_main.cc b/samples/simple_todo/simple_todo_main.cc
index 9aeabf8e8cc53c784eb1631b172b7efeca8ffa58..dab69d1f30f97d2f925a60cd3935fa8f4d748220 100644
--- a/samples/simple_todo/simple_todo_main.cc
+++ b/samples/simple_todo/simple_todo_main.cc
@@ -6,7 +6,7 @@
#include <pthread.h>
#include <stdlib.h>
-#include "include/fletch_api.h"
+#include "include/dartino_api.h"
#include "include/service_api.h"
#include "generated/cc/simple_todo.h"
@@ -34,11 +34,11 @@ static void WaitForVmThread(int expected) {
pthread_mutex_unlock(&mutex);
}
-static void* StartFletch(void* arg) {
+static void* StartDartino(void* arg) {
char* snapshot_filepath_with_name = reinterpret_cast<char*>(arg);
- FletchSetup();
- FletchRunSnapshotFromFile(snapshot_filepath_with_name);
- FletchTearDown();
+ DartinoSetup();
+ DartinoRunSnapshotFromFile(snapshot_filepath_with_name);
+ DartinoTearDown();
ChangeStatusAndNotify(kDone);
return NULL;
}
@@ -47,7 +47,7 @@ static void StartVmThread(char* snapshot_filename) {
pthread_mutex_init(&mutex, NULL);
pthread_cond_init(&cond, NULL);
pthread_t tid = 0;
- int result = pthread_create(&tid, 0, StartFletch,
+ int result = pthread_create(&tid, 0, StartDartino,
reinterpret_cast<void*>(snapshot_filename));
if (result != 0) {
printf("Error creating thread\n");
« no previous file with comments | « samples/simple_todo/java/TodoView.java ('k') | samples/simple_todo/simple_todo_service_tests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698