eolian/generator: support for more paragraph tags
authorDaniel Kolesa <d.kolesa@osg.samsung.com>
Wed, 16 Sep 2015 13:24:16 +0000 (14:24 +0100)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Wed, 16 Sep 2015 13:24:16 +0000 (14:24 +0100)
src/bin/eolian/docs_generator.c

index bf4eb67..eb008bd 100644 (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;
           }