Skip to content

Be more explicit about specifications for anonymous declarations #844

@edsko

Description

@edsko

Suppose we have

typedef struct {
  // .. fields
} foo;

struct foo {
  // .. fields
};

and suppose furthermore that we make it possible for binding specs to say that the typedef foo should not be squashed (#799). When this happens, with the existing infrastructure a binding specification for struct foo would become ambiguous. Perhaps @TravisCardwell was right all along and we should have a specific syntax for referring to anonymous declarations. Proposed syntax:

types:
   - header: ..
     cname: ..
    ..
   - header: ..
     anonymous: ..
    ..

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions