summaryrefslogtreecommitdiff
path: root/src/bin/eolian/docs_generator.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-08-10 16:25:55 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-08-10 16:25:55 +0100
commit9b0cd29268e73a9d7b8d1a81dfa63f4f6d0586ea (patch)
tree31d1151c1e548996601ce3990db052621dddd898 /src/bin/eolian/docs_generator.c
parent05b25e19e2469595400702a75179670a23585c05 (diff)
eolian/generator: fix turning values into @return when generating docs
@fix
Diffstat (limited to '')
-rw-r--r--src/bin/eolian/docs_generator.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/eolian/docs_generator.c b/src/bin/eolian/docs_generator.c
index 2404127140..ec04bd0945 100644
--- a/src/bin/eolian/docs_generator.c
+++ b/src/bin/eolian/docs_generator.c
@@ -371,7 +371,7 @@ docs_generate_function(const Eolian_Function *fid, Eolian_Function_Type ftype,
371 } 371 }
372 } 372 }
373 373
374 if (!itr || !eina_iterator_next(itr, (void**)&par)) 374 if (itr && !eina_iterator_next(itr, (void**)&par))
375 { 375 {
376 eina_iterator_free(itr); 376 eina_iterator_free(itr);
377 itr = NULL; 377 itr = NULL;
@@ -380,11 +380,12 @@ docs_generate_function(const Eolian_Function *fid, Eolian_Function_Type ftype,
380 /* when return is not set on getter, value becomes return instead of param */ 380 /* when return is not set on getter, value becomes return instead of param */
381 if (ftype == EOLIAN_PROP_GET && !eolian_function_return_type_get(fid, ftype)) 381 if (ftype == EOLIAN_PROP_GET && !eolian_function_return_type_get(fid, ftype))
382 { 382 {
383 const Eolian_Function_Parameter *rvpar = vpar;
383 if (!eina_iterator_next(vitr, (void**)&vpar)) 384 if (!eina_iterator_next(vitr, (void**)&vpar))
384 { 385 {
385 /* one value - not out param */ 386 /* one value - not out param */
386 eina_iterator_free(vitr); 387 eina_iterator_free(vitr);
387 rdoc = eolian_parameter_documentation_get(vpar); 388 rdoc = rvpar ? eolian_parameter_documentation_get(rvpar) : NULL;
388 vitr = NULL; 389 vitr = NULL;
389 vpar = NULL; 390 vpar = NULL;
390 } 391 }