Eolian/Generator: fix generation for return values.
authorDaniel Zaoui <daniel.zaoui@samsung.com>
Tue, 11 Mar 2014 13:17:12 +0000 (15:17 +0200)
committerDaniel Zaoui <daniel.zaoui@samsung.com>
Tue, 11 Mar 2014 13:43:46 +0000 (15:43 +0200)
commitfd67c1692c9385c4edbc314d2edc12c13cf9e429
tree1f3af0a22274faaccf53016cc1db607b837085f5
parentd3f343bdcced4ab88ef694fc900b978f4b2cfe75
Eolian/Generator: fix generation for return values.

- Remove space between type and variable if a star is present.
- Initialize return value to NULL before eo_do. It is needed in case the
eo_do invocation fails (NULL object...).
- Add const to the internal return value if needed.
src/bin/eolian/eo1_generator.c
src/bin/eolian/legacy_generator.c