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

Update C api #491

Merged
merged 3 commits into from
Aug 29, 2023
Merged

Update C api #491

merged 3 commits into from
Aug 29, 2023

Conversation

anonrig
Copy link
Member

@anonrig anonrig commented Aug 29, 2023

This pull request removes ada_clear_pathname because it is not feasible to make this public.

Fixes #490

Implementors should prefer to call `ada_set_pathname('')` instead of `ada_clear_pathname`
@anonrig anonrig requested a review from lemire August 29, 2023 19:28
@@ -87,7 +87,6 @@ void ada_set_hash(ada_url result, const char* input, size_t length);
// url_aggregator clear methods
void ada_clear_port(ada_url result);
void ada_clear_hash(ada_url result);
void ada_clear_pathname(ada_url result);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ada_clear_pathname can be implemented as set_pathname(""). I think.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I added as a commit comment but I don't think we need another function for this.

@anonrig anonrig merged commit 2c17312 into main Aug 29, 2023
28 checks passed
@anonrig anonrig deleted the fix-c-api branch August 29, 2023 19:57
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

Successfully merging this pull request may close these issues.

Calling ada_clear_pathname leads to inconsistent results
2 participants