eolian gen2: initial skeleton for impl gen
This commit is contained in:
parent
bedba4f423
commit
cf89ff3f45
|
@ -356,8 +356,16 @@ static Eina_Bool
|
|||
_write_impl(const char *ofname, const char *ifname)
|
||||
{
|
||||
INF("generating impl: %s", ofname);
|
||||
Eina_Strbuf *buf = eina_strbuf_new();
|
||||
|
||||
const Eolian_Class *cl = eolian_class_get_by_file(ifname);
|
||||
if (!cl)
|
||||
return EINA_FALSE;
|
||||
|
||||
Eina_Strbuf *buf = _read_file(ofname);
|
||||
if (!buf)
|
||||
return EINA_FALSE;
|
||||
|
||||
eo_gen_impl_gen(cl, buf);
|
||||
Eina_Bool ret = _write_file(ofname, buf, EINA_FALSE);
|
||||
eina_strbuf_free(buf);
|
||||
return ret;
|
||||
|
|
|
@ -762,3 +762,10 @@ eo_gen_source_gen(const Eolian_Class *cl, Eina_Strbuf *buf)
|
|||
free(cnamel);
|
||||
eina_hash_free(_funcs_params_init);
|
||||
}
|
||||
|
||||
void
|
||||
eo_gen_impl_gen(const Eolian_Class *cl, Eina_Strbuf *buf)
|
||||
{
|
||||
if (!cl)
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -4,5 +4,6 @@
|
|||
#include "main.h"
|
||||
|
||||
void eo_gen_source_gen(const Eolian_Class *cl, Eina_Strbuf *buf);
|
||||
void eo_gen_impl_gen(const Eolian_Class *cl, Eina_Strbuf *buf);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue