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/07/22 22:13:33 UTC
[lucy-commits] [4/6] git commit: refs/heads/charmonizer-decoupling - 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/23ebeaa4
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/23ebeaa4
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/23ebeaa4
Branch: refs/heads/charmonizer-decoupling
Commit: 23ebeaa4efe79bcc779536ff72abcf077c86dbdb
Parents: 04d8a90
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Mon Jul 22 21:43:10 2013 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Mon Jul 22 21:43:10 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/23ebeaa4/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;