summaryrefslogtreecommitdiff
path: root/src/lib/eolian
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eolian')
-rw-r--r--src/lib/eolian/eo_parser.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c
index 96de7a77ec..253e99e929 100644
--- a/src/lib/eolian/eo_parser.c
+++ b/src/lib/eolian/eo_parser.c
@@ -536,6 +536,8 @@ parse_struct(Eo_Lexer *ls, const char *name, Eina_Bool is_extern,
536qual_end: 536qual_end:
537 check_next(ls, ';'); 537 check_next(ls, ';');
538 FILL_DOC(ls, fdef, doc); 538 FILL_DOC(ls, fdef, doc);
539 if (def->doc && fdef->doc && def->doc->since && !fdef->doc->since)
540 fdef->doc->since = eina_stringshare_ref (def->doc->since);
539 } 541 }
540 check_match(ls, '}', '{', bline, bcolumn); 542 check_match(ls, '}', '{', bline, bcolumn);
541 FILL_BASE(def->base, ls, line, column, TYPEDECL); 543 FILL_BASE(def->base, ls, line, column, TYPEDECL);
@@ -656,6 +658,8 @@ parse_enum(Eo_Lexer *ls, const char *name, Eina_Bool is_extern,
656 if (want_next) 658 if (want_next)
657 eo_lexer_get(ls); 659 eo_lexer_get(ls);
658 FILL_DOC(ls, fdef, doc); 660 FILL_DOC(ls, fdef, doc);
661 if (def->doc && fdef->doc && def->doc->since && !fdef->doc->since)
662 fdef->doc->since = eina_stringshare_ref (def->doc->since);
659 if (!want_next || ls->t.token == '}') 663 if (!want_next || ls->t.token == '}')
660 break; 664 break;
661 } 665 }