-
Notifications
You must be signed in to change notification settings - Fork 291
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
Use tox_options_set_*
instead of direct member access.
#333
Conversation
505b7ad
to
1b8159d
Compare
Reviewed 12 of 12 files at r1. Comments from Reviewable |
Reviewed 6 of 12 files at r1, 6 of 6 files at r2. toxcore/tox.h, line 730 at r2 (raw file):
Doesn't allocate anything. Comments from Reviewable |
But you can create Comments from Reviewable |
Also, what is the point of Review status: all files reviewed at latest revision, 1 unresolved discussion. Comments from Reviewable |
Also added a `tox_options_copy` function for cloning an options object. This can be useful when creating several Tox instances with slightly varying options.
acce1a6
to
25cadff
Compare
The point of tox_api.c (and we can change the name if you have a better suggestion) is that it contains all the code that could be autogenerated by apidsl. Perhaps some of the code (like Review status: 6 of 10 files reviewed at latest revision, 1 unresolved discussion. Comments from Reviewable |
dd0f562
to
c334c78
Compare
Reviewed 5 of 6 files at r3. auto_tests/helpers.h, line 59 at r3 (raw file):
Why don't we want to avoid modifying the Tox_Options struct in this helper function for tests? We could just make it the default behavior of this function and document it, don't really see any harm in it. Comments from Reviewable |
auto_tests/helpers.h, line 59 at r3 (raw file): Previously, nurupo wrote…
*Why do we want to avoid Comments from Reviewable |
Review status: 9 of 10 files reviewed at latest revision, 2 unresolved discussions, all commit checks successful. Comments from Reviewable |
Reviewed 1 of 1 files at r4. Comments from Reviewable |
Also added a
tox_options_copy
function for cloning an options object.This can be useful when creating several Tox instances with slightly
varying options.
This change is