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 <[email protected]> Authored: Sun Dec 16 17:47:02 2012 +0100 Committer: Nick Wellnhofer <[email protected]> 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);
