summaryrefslogtreecommitdiff
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-02-17 21:33:54 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2019-02-21 12:14:33 +0100
commite335663da08eddc77545755e6a97818428163bdb (patch)
treefc4cf7ade3a3805898073aadeff53707c6b551ae /src/bin/eolian
parent39f224b3a65f10f3957d240582c63fafd7d2d524 (diff)
eolian gen: emit doxygen references to constants in uppercase
Since these are made into macros in C, they get uppercase names. Reflect this in documentation generation. Fixes T7691.
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/docs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/eolian/docs.c b/src/bin/eolian/docs.c
index 60ccf1b..5690594 100644
--- a/src/bin/eolian/docs.c
+++ b/src/bin/eolian/docs.c
@@ -28,6 +28,13 @@ _generate_ref(const Eolian_State *state, const char *refn, Eina_Strbuf *wbuf,
28 char *n = strdup(eolian_object_name_get(decl)); 28 char *n = strdup(eolian_object_name_get(decl));
29 char *p = n; 29 char *p = n;
30 while ((p = strchr(p, '.'))) *p = '_'; 30 while ((p = strchr(p, '.'))) *p = '_';
31 if (eolian_object_type_get(decl) == EOLIAN_OBJECT_VARIABLE)
32 {
33 const Eolian_Variable *v = (const Eolian_Variable *)decl;
34 /* constants are emitted as macros */
35 if (eolian_variable_type_get(v) == EOLIAN_VAR_CONSTANT)
36 eina_str_toupper(&n);
37 }
31 eina_strbuf_append(wbuf, n); 38 eina_strbuf_append(wbuf, n);
32 free(n); 39 free(n);
33 return; 40 return;