From: Enlightenment S. <no-...@en...> - 2010-12-03 00:54:52
|
Log: remove stupid module_data_size_get, just use sizeof Author: discomfitor Date: 2010-12-02 16:54:45 -0800 (Thu, 02 Dec 2010) New Revision: 55168 Trac: http://trac.enlightenment.org/e/changeset/55168 Modified: trunk/PROTO/azy/src/bin/main.c Modified: trunk/PROTO/azy/src/bin/main.c =================================================================== --- trunk/PROTO/azy/src/bin/main.c 2010-12-03 00:45:05 UTC (rev 55167) +++ trunk/PROTO/azy/src/bin/main.c 2010-12-03 00:54:45 UTC (rev 55168) @@ -852,12 +852,6 @@ EL(0, "#define %s%s_module_data_get(Azy_Server_Module) (%s%sModule*)azy_server_module_data_get((Azy_Server_Module))", azy->name, s->name); - EL(0, "/** Utility method that returns size of the module private data."); - EL(0, " * "); - EL(0, " * @return Size of the @ref %s%sModule struct.", azy->name, s->name); - EL(0, " */ "); - EL(0, "inline int %s%sModule_data_size_get(void);", azy->name, s->name); - NL; if (s->stub_init) { @@ -1165,7 +1159,7 @@ GET_NAME(fallback); EL(0, ");"); - EL(1, "azy_server_module_size_set(__module, %s%sModule_data_size_get());", azy->name, s->name); + EL(1, "azy_server_module_size_set(__module, sizeof(%s%sModule));", azy->name, s->name); EINA_LIST_FOREACH(s->methods, j, method) { EL(1, "__method = azy_server_module_method_new(\"%s\", __method_%s);", method->name, method->name); @@ -1192,12 +1186,6 @@ NL; } - EL(0, "inline int %s%sModule_data_size_get(void)", azy->name, s->name); - EL(0, "{"); - EL(1, "return sizeof(%s%sModule);", azy->name, s->name); - EL(0, "}"); - NL; - if (s->stub_init) { EL(0, "Eina_Bool %s%sModule_init(Azy_Server_Module* _module)", |