q66 pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=71a8b9d119a84dec621010e2397ad546d559b298
commit 71a8b9d119a84dec621010e2397ad546d559b298 Author: Daniel Kolesa <d.kol...@osg.samsung.com> Date: Tue Jun 23 16:44:17 2015 +0100 eolian: relax doc parsing a little (no need to check if @since is allowed) --- src/lib/eolian/eo_lexer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/eolian/eo_lexer.c b/src/lib/eolian/eo_lexer.c index 3a835e5..5ecdd87 100644 --- a/src/lib/eolian/eo_lexer.c +++ b/src/lib/eolian/eo_lexer.c @@ -257,7 +257,7 @@ enum Doc_Tokens { }; static int -doc_lex(Eo_Lexer *ls, Eina_Bool *term, Eina_Bool allow_since) +doc_lex(Eo_Lexer *ls, Eina_Bool *term) { int tokret = -1; Eina_Bool contdoc = EINA_FALSE; @@ -328,8 +328,6 @@ doc_lex(Eo_Lexer *ls, Eina_Bool *term, Eina_Bool allow_since) if (!strcmp(eina_strbuf_string_get(ls->buff), "@since")) { /* since-token */ - if (!allow_since) - return DOC_MANGLED; eina_strbuf_reset(ls->buff); skip_ws(ls); while (ls->current && (ls->current == '.' || @@ -389,7 +387,7 @@ read_doc(Eo_Lexer *ls, Eo_Token *tok, int line, int column) Eina_Bool term = EINA_FALSE; while (!term) { - int read = doc_lex(ls, &term, !!doc->summary); + int read = doc_lex(ls, &term); switch (read) { case DOC_MANGLED: @@ -416,6 +414,8 @@ read_doc(Eo_Lexer *ls, Eo_Token *tok, int line, int column) if (eina_strbuf_length_get(rbuf)) doc->description = eina_stringshare_add(eina_strbuf_string_get(rbuf)); + if (!doc->summary) + doc->summary = eina_stringshare_add("No description supplied."); eina_strbuf_free(rbuf); tok->value.doc = doc; } --