eolian gen2: initial skeleton for impl gen

This commit is contained in:
Daniel Kolesa 2016-10-05 14:45:27 +02:00
parent bedba4f423
commit cf89ff3f45
3 changed files with 17 additions and 1 deletions

View File

@ -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;

View File

@ -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;
}

View File

@ -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