Skip to content

function pointer parser #17

@mwichmann

Description

@mwichmann

Once we recognize that a struct member is a function pointer, it would be nice to
be able to break apart the string so we can make use of it. Given that we have
split a line into a pair as in this example:

type: void
name: (* value_changed) (GtkScaleButton *button, gdouble value)

We want to break the "name" string into:

  • name entry in TypeMember: value_changed
  • Type for this fptr: (*) (GtkScaleButton *, gdouble)
  • members of fptr type: GtkScaleButton *button, gdouble value
    which for looking up the type first and then adding the field, need to
    be further broken into type/name correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions