Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 874
    • Issues 874
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 55
    • Merge requests 55
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GLib
  • Issues
  • #65

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 May 15, 2023 by Philip Withnall
Assignee
Assign to
Time tracking