summaryrefslogtreecommitdiff
path: root/src/bin/eolian/docs_generator.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-09-16 14:24:16 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-09-16 14:24:16 +0100
commitc9462b56c842501aee4e06f4a126f900437d3f98 (patch)
tree65e94e3302f2fd525ce60360dc985c89a2363f4d /src/bin/eolian/docs_generator.c
parent8fe237c08897de07bb9563bfe6dfaf385a0d8244 (diff)
eolian/generator: support for more paragraph tags
Diffstat (limited to '')
-rw-r--r--src/bin/eolian/docs_generator.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/bin/eolian/docs_generator.c b/src/bin/eolian/docs_generator.c
index bf4eb678d8..eb008bd30e 100644
--- a/src/bin/eolian/docs_generator.c
+++ b/src/bin/eolian/docs_generator.c
@@ -130,7 +130,7 @@ _append_section(const char *desc, int ind, int curl, Eina_Strbuf *buf,
130 eina_strbuf_append_char(wbuf, *desc++); 130 eina_strbuf_append_char(wbuf, *desc++);
131 if (try_note) 131 if (try_note)
132 { 132 {
133#define CHECK_NOTE(str) !strncmp(desc, str ": ", sizeof(str ": ") - 1) 133#define CHECK_NOTE(str) !strncmp(desc, str ": ", sizeof(str ":"))
134 if (CHECK_NOTE("Note")) 134 if (CHECK_NOTE("Note"))
135 { 135 {
136 eina_strbuf_append(wbuf, "@note "); 136 eina_strbuf_append(wbuf, "@note ");
@@ -141,6 +141,16 @@ _append_section(const char *desc, int ind, int curl, Eina_Strbuf *buf,
141 eina_strbuf_append(wbuf, "@warning "); 141 eina_strbuf_append(wbuf, "@warning ");
142 desc += sizeof("Warning:"); 142 desc += sizeof("Warning:");
143 } 143 }
144 else if (CHECK_NOTE("Remark"))
145 {
146 eina_strbuf_append(wbuf, "@remark ");
147 desc += sizeof("Remark:");
148 }
149 else if (CHECK_NOTE("TODO"))
150 {
151 eina_strbuf_append(wbuf, "@todo ");
152 desc += sizeof("TODO:");
153 }
144#undef CHECK_NOTE 154#undef CHECK_NOTE
145 try_note = EINA_FALSE; 155 try_note = EINA_FALSE;
146 } 156 }