glib-mkenums: parse_trigraph() chokes on quoted commas
Submitted by Michael Natterer
Assigned to Tim Janik
Link to original bug (#364709)
Description
In the constructed case:
typedef enum {
FOO_VALUE /*< name="eek, a comma" >*/
} Foo;
The quoted comma breaks parsing in glib-mkenums, line 26 where is does:
for $opt (split /\s*,\s*/, $opts) {
Replacing this by:
for $opt (quotewords(",", "true", $opts)) {
Works fine in gimp-mkenums, which supports quoted commas.
Edited by Philip Withnall