Fix bug when using enum initializer
Fix bug when using enum initializer

The bug would make enums which looks like this:

> typedef enum {
>  LLVMIntEQ = 32, /**< equal */
>  LLVMIntNE,      /**< not equal */
>  LLVMIntUGT,     /**< unsigned greater than */
>  LLVMIntUGE,     /**< unsigned greater or equal */
>  LLVMIntULT,     /**< unsigned less than */
>  LLVMIntULE,     /**< unsigned less or equal */
>  LLVMIntSGT,     /**< signed greater than */
>  LLVMIntSGE,     /**< signed greater or equal */
>  LLVMIntSLT,     /**< signed less than */
>  LLVMIntSLE      /**< signed less or equal */
> } LLVMIntPredicate;

to be generated as this:

> %% enum LLVMIntPredicate
> -define(LLVMIntEQ,{'LLVMIntPredicate',32}).
> %% equal
> -define(LLVMIntNE,{'LLVMIntPredicate',0}).
> %% not equal
> -define(LLVMIntUGT,{'LLVMIntPredicate',1}).
> %% unsigned greater than
> -define(LLVMIntUGE,{'LLVMIntPredicate',2}).
> %% unsigned greater or equal
> -define(LLVMIntULT,{'LLVMIntPredicate',3}).
> %% unsigned less than
> -define(LLVMIntULE,{'LLVMIntPredicate',4}).
> %% unsigned less or equal
> -define(LLVMIntSGT,{'LLVMIntPredicate',5}).
> %% signed greater than
> -define(LLVMIntSGE,{'LLVMIntPredicate',6}).
> %% signed greater or equal
> -define(LLVMIntSLT,{'LLVMIntPredicate',7}).
> %% signed less than
> -define(LLVMIntSLE,{'LLVMIntPredicate',8}).
> %% signed less or equal

which is obviously wrong.

Thanks Yannis Tsiouris for the patch!

garazdawi/llevm,garazdawi/llevm