Bug#457933: glib-mkenums: Cannot parse an enum whose value is a comma

Sebastian Dröge slomo at uni-paderborn.de
Thu Jan 3 08:06:23 UTC 2008


forwarded 457933 http://bugzilla.gnome.org/show_bug.cgi?id=506986
thanks

Am Donnerstag, den 27.12.2007, 12:05 +0100 schrieb Andrea Bolognani:
> I have the following enum definition in a file called
> beef_instruction.h,
> and I want it to be converted into a GEnum derived type.
> 
>     typedef enum {
>         BEEF_INSTRUCTION_NONE        = '\0',
>         BEEF_INSTRUCTION_PREVIOUS    = '<',
>         BEEF_INSTRUCTION_NEXT        = '>',
>         BEEF_INSTRUCTION_INCREASE    = '+',
>         BEEF_INSTRUCTION_DECREASE    = '-',
>         BEEF_INSTRUCTION_LOOP_BEGIN  = '[',
>         BEEF_INSTRUCTION_LOOP_END    = ']',
>         BEEF_INSTRUCTION_READ        = ',',
>         BEEF_INSTRUCTION_PRINT       = '.',
>         BEEF_INSTRUCTION_TAPE_DUMP   = '#'
>     } BeefInstructionValue;
> 
> I think the code is legit and glib-mkenums should be able to handle
> it, but
> the value of BEEF_INSTRUCTION_READ is skipped in the output files, and
> the
> following error message is displayed:
> 
>     /usr/bin/glib-mkenums: beef_instruction.h:23: Failed to parse `
> BEEF_INSTRUCTION_READ        = ',', '
> 
> Please consider fixing this, or let me know if the problem lies in my
> code. 

Hi,
thanks for reporting this. I've forwarded your bug upstream, IMHO
nothing is wrong with your code:

http://bugzilla.gnome.org/show_bug.cgi?id=506986







More information about the pkg-gnome-maintainers mailing list