q66 pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=f9868b541ea57ade726e7d474d8d80c2b298a283
commit f9868b541ea57ade726e7d474d8d80c2b298a283 Author: Daniel Kolesa <d.kol...@osg.samsung.com> Date: Thu Dec 14 16:38:35 2017 +0100 eolian: store unit inside lexer --- src/lib/eolian/eo_lexer.c | 1 + src/lib/eolian/eo_lexer.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/lib/eolian/eo_lexer.c b/src/lib/eolian/eo_lexer.c index 1aa02ae777..afe7cc8a4c 100644 --- a/src/lib/eolian/eo_lexer.c +++ b/src/lib/eolian/eo_lexer.c @@ -1046,6 +1046,7 @@ eo_lexer_set_input(Eo_Lexer *ls, Eolian *state, const char *source) next_char(ls); Eolian_Unit *ncunit = calloc(1, sizeof(Eolian_Unit)); + ls->unit = ncunit; database_unit_init(state, ncunit, ls->filename); eina_hash_add(state->units, ls->filename, ncunit); } diff --git a/src/lib/eolian/eo_lexer.h b/src/lib/eolian/eo_lexer.h index e6f3249dcd..9ca577101b 100644 --- a/src/lib/eolian/eo_lexer.h +++ b/src/lib/eolian/eo_lexer.h @@ -168,6 +168,8 @@ typedef struct _Eo_Lexer const char *stream_line; /* a pointer to the state this lexer belongs to */ Eolian *state; + /* the unit being filled during current parsing */ + Eolian_Unit *unit; /* this is jumped to when an error happens */ jmp_buf err_jmp; --