Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error: multiple definition of can_contain #56

Open
milahu opened this issue Feb 20, 2024 · 0 comments
Open

build error: multiple definition of can_contain #56

milahu opened this issue Feb 20, 2024 · 0 comments

Comments

@milahu
Copy link

milahu commented Feb 20, 2024

helper functions should be static
to avoid the downstream build error multiple definition of ...
when building one binary from multiple parsers

bool can_contain(const Tag *parent, const Tag *tag) {

like in tree-sitter-html

static bool can_contain(Tag *self, const Tag *other) {

grantjenks/py-tree-sitter-languages#55
tree-sitter/tree-sitter-html#64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant