lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [03/15] git commit: refs/heads/install-c-library - Add CFISH_VISIBLE alias
Date Sat, 18 May 2013 19:23:48 GMT
Add CFISH_VISIBLE alias


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/f2fc2302
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/f2fc2302
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/f2fc2302

Branch: refs/heads/install-c-library
Commit: f2fc2302c567f9b01d97dd1bf383388518ca37c1
Parents: 3c8a631
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Sat May 18 01:01:56 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Sat May 18 13:12:47 2013 +0200

----------------------------------------------------------------------
 clownfish/compiler/src/CFCBindAliases.c |    2 ++
 clownfish/compiler/src/CFCBindCore.c    |    4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/f2fc2302/clownfish/compiler/src/CFCBindAliases.c
----------------------------------------------------------------------
diff --git a/clownfish/compiler/src/CFCBindAliases.c b/clownfish/compiler/src/CFCBindAliases.c
index 09a1c84..9eda959 100644
--- a/clownfish/compiler/src/CFCBindAliases.c
+++ b/clownfish/compiler/src/CFCBindAliases.c
@@ -24,6 +24,8 @@ struct alias {
 };
 
 struct alias aliases[] = {
+    {"CFISH_VISIBLE", "LUCY_VISIBLE"},
+
     {"cfish_Obj", "lucy_Obj"},
     {"CFISH_OBJ", "LUCY_OBJ"},
     {"Cfish_Obj_Dump", "Lucy_Obj_Dump"},

http://git-wip-us.apache.org/repos/asf/lucy/blob/f2fc2302/clownfish/compiler/src/CFCBindCore.c
----------------------------------------------------------------------
diff --git a/clownfish/compiler/src/CFCBindCore.c b/clownfish/compiler/src/CFCBindCore.c
index 642569b..eff20eb 100644
--- a/clownfish/compiler/src/CFCBindCore.c
+++ b/clownfish/compiler/src/CFCBindCore.c
@@ -206,7 +206,7 @@ S_write_parcel_h(CFCBindCore *self) {
         "     ((_full_meth ## _t)cfish_super_method(_vtable, \\\n"
         "                                           _full_meth ## _OFFSET))\n"
         "\n"
-        "extern %sVISIBLE size_t cfish_VTable_offset_of_parent;\n"
+        "extern CFISH_VISIBLE size_t cfish_VTable_offset_of_parent;\n"
         "static CHY_INLINE cfish_method_t\n"
         "cfish_super_method(const void *vtable, size_t offset) {\n"
         "    char *vt_as_char = (char*)vtable;\n"
@@ -266,7 +266,7 @@ S_write_parcel_h(CFCBindCore *self) {
         "\n";
     char *file_content
         = CFCUtil_sprintf(pattern, self->header, aliases, typedefs, PREFIX,
-                          PREFIX, prefix, prefix, self->footer);
+                          prefix, prefix, self->footer);
 
     // Unlink then write file.
     const char *inc_dest = CFCHierarchy_get_include_dest(hierarchy);


Mime
View raw message