Bug#457933: glib-mkenums: Cannot parse an enum whose value is a comma
Andrea Bolognani
eof at kiyuko.org
Thu Dec 27 11:05:01 UTC 2007
Package: libglib2.0-dev
Version: 2.14.3-1
Severity: normal
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.
--
KiyuKo <eof AT kiyuko DOT org>
Resistance is futile, you will be garbage collected.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20071227/c5ee97b4/attachment.pgp
More information about the pkg-gnome-maintainers
mailing list