eolian/generator: support for more paragraph tags

This commit is contained in:
Daniel Kolesa 2015-09-16 14:24:16 +01:00
parent 8fe237c088
commit c9462b56c8
1 changed files with 11 additions and 1 deletions

View File

@ -130,7 +130,7 @@ _append_section(const char *desc, int ind, int curl, Eina_Strbuf *buf,
eina_strbuf_append_char(wbuf, *desc++);
if (try_note)
{
#define CHECK_NOTE(str) !strncmp(desc, str ": ", sizeof(str ": ") - 1)
#define CHECK_NOTE(str) !strncmp(desc, str ": ", sizeof(str ":"))
if (CHECK_NOTE("Note"))
{
eina_strbuf_append(wbuf, "@note ");
@ -141,6 +141,16 @@ _append_section(const char *desc, int ind, int curl, Eina_Strbuf *buf,
eina_strbuf_append(wbuf, "@warning ");
desc += sizeof("Warning:");
}
else if (CHECK_NOTE("Remark"))
{
eina_strbuf_append(wbuf, "@remark ");
desc += sizeof("Remark:");
}
else if (CHECK_NOTE("TODO"))
{
eina_strbuf_append(wbuf, "@todo ");
desc += sizeof("TODO:");
}
#undef CHECK_NOTE
try_note = EINA_FALSE;
}