-
Notifications
You must be signed in to change notification settings - Fork 102
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
Add rcutils_string_array_resize function #247
Conversation
This change adds a new function to modify the size of an array which is already allocated, preserving existing entries where possible. Signed-off-by: Scott K Logan <logans@cottsay.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check the allocator
Signed-off-by: Scott K Logan <logans@cottsay.net> Co-authored-by: Alejandro Hernández Cordero <alejandro@openrobotics.org>
Signed-off-by: Scott K Logan <logans@cottsay.net>
Signed-off-by: Scott K Logan <logans@cottsay.net>
Signed-off-by: Scott K Logan <logans@cottsay.net>
Signed-off-by: Scott K Logan <logans@cottsay.net>
Signed-off-by: Scott K Logan <logans@cottsay.net>
Signed-off-by: Scott K Logan <logans@cottsay.net>
Signed-off-by: Scott K Logan <logans@cottsay.net>
Signed-off-by: Scott K Logan <logans@cottsay.net>
Signed-off-by: Scott K Logan <logans@cottsay.net> Co-authored-by: Karsten Knese <Karsten1987@users.noreply.github.com>
This means there is no chance that the instance will ever get "partially" updated, even when there are problems reclaiming resources. Signed-off-by: Scott K Logan <logans@cottsay.net>
Signed-off-by: Scott K Logan <logans@cottsay.net>
c17656d
to
b808905
Compare
Signed-off-by: Scott K Logan <logans@cottsay.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
you might want to trigger another round of CI though. |
I'm no longer motivated to make this happen before Foxy, so I'll trigger some fresh CI next week and we can consider merging then. Thanks everyone for the reviews. |
Signed-off-by: Scott K Logan <logans@cottsay.net>
39c0356
to
9ceb82b
Compare
Signed-off-by: Scott K Logan <logans@cottsay.net>
Signed-off-by: Scott K Logan <logans@cottsay.net>
I think this pull request has introduced the regression ros2/rmw#234 I have run Edit: I accidentally a whole build. |
This change adds a new function to safely modify the size of an array which is already allocated, preserving existing entries where possible. It combines the existing behaviors in
rcutils_string_array_init
andrcutils_string_array_fini
.