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

Unified Diff: src/vm/ffi_static.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 | « src/vm/ffi_posix.cc ('k') | src/vm/ffi_test_library.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/vm/ffi_static.cc
diff --git a/src/vm/ffi_static.cc b/src/vm/ffi_static.cc
index 82aea9ae594bc13c2491cd5380bf72d7927e2dd6..1dafa9a47f0681333814dbfbba3097850a9740eb 100644
--- a/src/vm/ffi_static.cc
+++ b/src/vm/ffi_static.cc
@@ -2,9 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE.md file.
-#if defined(FLETCH_TARGET_OS_LK) || defined(FLETCH_TARGET_OS_CMSIS)
+#if defined(DARTINO_TARGET_OS_LK) || defined(DARTINO_TARGET_OS_CMSIS)
-#ifdef FLETCH_ENABLE_FFI
+#ifdef DARTINO_ENABLE_FFI
#include "src/vm/ffi.h"
#include "src/vm/natives.h"
@@ -13,9 +13,9 @@
#include "include/static_ffi.h"
-extern "C" FletchStaticFFISymbol fletch_ffi_table;
+extern "C" DartinoStaticFFISymbol dartino_ffi_table;
-namespace fletch {
+namespace dartino {
void ForeignFunctionInterface::Setup() {}
@@ -37,7 +37,7 @@ BEGIN_NATIVE(ForeignLibraryGetFunction) {
word address = AsForeignWord(arguments[0]);
if (address != 0) return Failure::index_out_of_bounds();
char* name = AsForeignString(arguments[1]);
- for (FletchStaticFFISymbol* entry = &fletch_ffi_table; entry->name != NULL;
+ for (DartinoStaticFFISymbol* entry = &dartino_ffi_table; entry->name != NULL;
entry++) {
if (strcmp(name, entry->name) == 0) {
free(name);
@@ -71,8 +71,8 @@ BEGIN_NATIVE(ForeignErrno) {
}
END_NATIVE()
-} // namespace fletch
+} // namespace dartino
-#endif // FLETCH_ENABLE_FFI
+#endif // DARTINO_ENABLE_FFI
-#endif // defined(FLETCH_TARGET_OS_LK) || defined(FLETCH_TARGET_OS_CMSIS)
+#endif // defined(DARTINO_TARGET_OS_LK) || defined(DARTINO_TARGET_OS_CMSIS)
« no previous file with comments | « src/vm/ffi_posix.cc ('k') | src/vm/ffi_test_library.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698