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 2012/12/16 18:00:22 UTC
[lucy-commits] [2/3] git commit: refs/heads/master - Remove duplicate includes from
parcel.c
Remove duplicate includes from parcel.c
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/835723ee
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/835723ee
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/835723ee
Branch: refs/heads/master
Commit: 835723eef2e12848bffdafccf79be6d133674c5c
Parents: 3c27160
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sun Dec 16 17:47:02 2012 +0100
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Sun Dec 16 17:47:02 2012 +0100
----------------------------------------------------------------------
clownfish/compiler/src/CFCBindClass.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/835723ee/clownfish/compiler/src/CFCBindClass.c
----------------------------------------------------------------------
diff --git a/clownfish/compiler/src/CFCBindClass.c b/clownfish/compiler/src/CFCBindClass.c
index 2bebdc3..52aa5a5 100644
--- a/clownfish/compiler/src/CFCBindClass.c
+++ b/clownfish/compiler/src/CFCBindClass.c
@@ -272,7 +272,6 @@ CFCBindClass_to_c_data(CFCBindClass *self) {
return CFCUtil_strdup(CFCClass_get_autocode(client));
}
- const char *include_h = CFCClass_include_h(client);
const char *autocode = CFCClass_get_autocode(client);
const char *vt_var = CFCClass_full_vtable_var(client);
@@ -341,8 +340,6 @@ CFCBindClass_to_c_data(CFCBindClass *self) {
}
const char pattern[] =
- "#include \"%s\"\n"
- "\n"
"/* Offsets for method pointers, measured in bytes, from the top\n"
" * of this class's vtable.\n"
" */\n"
@@ -372,7 +369,6 @@ CFCBindClass_to_c_data(CFCBindClass *self) {
"%s\n"
"\n";
size_t size = sizeof(pattern)
- + strlen(include_h)
+ strlen(offsets)
+ strlen(cb_funcs)
+ strlen(ms_var)
@@ -380,8 +376,7 @@ CFCBindClass_to_c_data(CFCBindClass *self) {
+ strlen(autocode)
+ 100;
char *code = (char*)MALLOCATE(size);
- sprintf(code, pattern, include_h, offsets, cb_funcs, ms_var, vt_var,
- autocode);
+ sprintf(code, pattern, offsets, cb_funcs, ms_var, vt_var, autocode);
FREEMEM(fresh_methods);
FREEMEM(offsets);