You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2013/08/08 11:20:20 UTC

[lucy-commits] [11/15] git commit: refs/heads/master - Add CFISH_SIZEOF macros

Add CFISH_SIZEOF macros


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

Branch: refs/heads/master
Commit: 7f9c851145082ad8dd7db97315f4b8d08ae8d246
Parents: ed0daa1
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Mon Jul 22 21:43:10 2013 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Thu Aug 8 11:08:03 2013 +0200

----------------------------------------------------------------------
 clownfish/compiler/src/CFCBindCore.c | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/7f9c8511/clownfish/compiler/src/CFCBindCore.c
----------------------------------------------------------------------
diff --git a/clownfish/compiler/src/CFCBindCore.c b/clownfish/compiler/src/CFCBindCore.c
index eeb435d..9d7eda4 100644
--- a/clownfish/compiler/src/CFCBindCore.c
+++ b/clownfish/compiler/src/CFCBindCore.c
@@ -637,11 +637,24 @@ S_charmony_string_defines() {
         "#define CFISH_INLINE %s\n"
         "#define CFISH_EXPORT %s\n"
         "#define CFISH_IMPORT %s\n"
+        "#define CFISH_SIZEOF_CHAR %s\n"
+        "#define CFISH_SIZEOF_SHORT %s\n"
+        "#define CFISH_SIZEOF_INT %s\n"
+        "#define CFISH_SIZEOF_LONG %s\n"
+        "#define CFISH_SIZEOF_SIZE_T %s\n"
         "#define CFISH_FUNC_MACRO %s\n"
         "#define CFISH_U64_TO_DOUBLE(x) %s\n";
     char *defines
-        = CFCUtil_sprintf(pattern, XSTRING(CHY_INLINE), XSTRING(CHY_EXPORT),
-                          XSTRING(CHY_IMPORT), XSTRING(CHY_FUNC_MACRO),
+        = CFCUtil_sprintf(pattern,
+                          XSTRING(CHY_INLINE),
+                          XSTRING(CHY_EXPORT),
+                          XSTRING(CHY_IMPORT),
+                          XSTRING(CHY_SIZEOF_CHAR),
+                          XSTRING(CHY_SIZEOF_SHORT),
+                          XSTRING(CHY_SIZEOF_INT),
+                          XSTRING(CHY_SIZEOF_LONG),
+                          XSTRING(CHY_SIZEOF_SIZE_T),
+                          XSTRING(CHY_FUNC_MACRO),
                           XSTRING(CHY_U64_TO_DOUBLE(x)));
 
     return defines;