summaryrefslogtreecommitdiff
path: root/src/bin/eolian/docs_generator.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-06-05 17:02:47 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-06-05 17:02:47 +0100
commit1f84f5eb6bfe899d953b455a8763bc7ff3753d74 (patch)
treea47931a000af2f9e4bab364b32de14494edd10d5 /src/bin/eolian/docs_generator.c
parent5876b08fdb999610930e5ad4de971d0e540c3a9e (diff)
eolian/generator: generate @ref foo for @foo
Diffstat (limited to '')
-rw-r--r--src/bin/eolian/docs_generator.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/bin/eolian/docs_generator.c b/src/bin/eolian/docs_generator.c
index e91d59ea1a..9c7a482fa1 100644
--- a/src/bin/eolian/docs_generator.c
+++ b/src/bin/eolian/docs_generator.c
@@ -31,6 +31,21 @@ _append_section(const char *desc, int ind, int curl, Eina_Strbuf *buf,
31 eina_strbuf_reset(wbuf); 31 eina_strbuf_reset(wbuf);
32 while (*desc && isspace(*desc) && (*desc != '\n')) 32 while (*desc && isspace(*desc) && (*desc != '\n'))
33 eina_strbuf_append_char(wbuf, *desc++); 33 eina_strbuf_append_char(wbuf, *desc++);
34 if (*desc == '\\')
35 {
36 desc++;
37 if (*desc != '@')
38 eina_strbuf_append_char(wbuf, '\\');
39 eina_strbuf_append_char(wbuf, *desc++);
40 }
41 else if (*desc == '@')
42 {
43 desc++;
44 if (isalpha(*desc))
45 eina_strbuf_append(wbuf, "@ref ");
46 else
47 eina_strbuf_append_char(wbuf, '@');
48 }
34 while (*desc && !isspace(*desc)) 49 while (*desc && !isspace(*desc))
35 eina_strbuf_append_char(wbuf, *desc++); 50 eina_strbuf_append_char(wbuf, *desc++);
36 int limit = DOC_LIMIT(ind); 51 int limit = DOC_LIMIT(ind);