-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
eliminate inclusion loops in safe_mem_lib.h and safe_str_lib.h #14
Comments
sounds good. c++ is also a good check for finding such recursion errors. |
👍🏻 |
hide the UNSAFE functions with --disable-unsafe. Also resolve the header inclusion loops from #14
hide the UNSAFE functions with --disable-unsafe. Also resolve the header inclusion loops from #14
hide the UNSAFE functions with --disable-unsafe. Also resolve the header inclusion loops from #14
hide the UNSAFE functions with --disable-unsafe. Also resolve the header inclusion loops from #14
hide the UNSAFE functions with --disable-unsafe. Also resolve the header inclusion loops from #14
Note that I had to change the includes a bit for windows support. |
Done with 234f3b0 |
234f3b0 doesn't get rid of the inclusion loops. |
you need to include the right header file now, either safe_str_lib.h, safe_mem_lib.h or safe_lib.h for the rest. Similar behaviour as before, though a bit complex. Closes GH #14
you need to include the right header file now, either safe_str_lib.h, safe_mem_lib.h or safe_lib.h for the rest. Similar behaviour as before, though a bit complex. Closes GH #14
Fixed with fb4a6d5 |
I'm concerned that there are inclusion loops. Specifically, safe_mem_lib.h and safe_str_lib.h both include safe_lib.h which then includes both of them. I assume this is because safe_lib.h defines rsize_t and the abort/ignore handlers. I would suggest that rsize_t be moved into safe_types.h and maybe the handlers need to be put in their own .c/.h files. That way, safe_mem_lib.h and safe_str_lib.h can include safe_types.h and the safe_handlers.h but that's it. Then safe_lib.h will include safe_str_lib.h and safe_mem_lib.h.
Any issue with that restructuring to eliminate inclusion loops?
The text was updated successfully, but these errors were encountered: