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

file_browser.c - remove #include <string.h> #446

Merged
merged 3 commits into from
Apr 20, 2022

Conversation

crazyBaboon
Copy link
Contributor

It is no longer necessary, since string comparison is now carried out by Nuklear API.

It is no longer necessary, since string comparison is now carried out by Nuklear API.
@crazyBaboon
Copy link
Contributor Author

crazyBaboon commented Apr 15, 2022

This is ready to merge IMO

@RobLoach
Copy link
Contributor

RobLoach commented Apr 15, 2022

I see use of strcpy() and strlen() which both are defined in string.h. Are these defined elsewhere?
https://github.com/Immediate-Mode-UI/Nuklear/blob/master/demo/common/file_browser.c#L344

@crazyBaboon
Copy link
Contributor Author

crazyBaboon commented Apr 15, 2022

@RobLoach

Good point.

String.h was already being called in stb_image.h, so no need to call it twice

@RobLoach
Copy link
Contributor

RobLoach commented Apr 15, 2022

It's likely best to keep string.h in there if it's making use of the functions. We could add comments to indicate which functions are used to be clear. Ala crazyBaboon#1

@RobLoach RobLoach merged commit b71eb8d into Immediate-Mode-UI:master Apr 20, 2022
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.

None yet

2 participants