-
Notifications
You must be signed in to change notification settings - Fork 101
libtock: Do not include _syscalls.h automatically for each driver
#542
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
Conversation
|
I can't figure out why this build is failing. It doesn't touch anything related to u8g2. |
2e80a8b to
f85c6d0
Compare
f85c6d0 to
dcf02b8
Compare
|
Rebased; |
Apps should specify they use syscalls directly. Need to duplicate the exists() function to make this work.
dcf02b8 to
9a543bb
Compare
|
Okay, got this to happy green checkmarks. @bradjc , you should verify that this change makes sense, I honestly don't understand how the original code was ever accepted (or what the |
|
Looks good to me. |
Currently if an app uses a
libtockdriver, thedriver_syscalls.hheader is included automatically. This undoes that, requiring apps to explicitly include the syscalls header if the want to use the low-level syscalls.Benefits:
#includes become a signal that apps are using low-level APIs, which may not be the intention.Impacts:
_exists()function in syscalls (which needs the driver num), in libtock (for async apps) and in libtock-sync (for sync apps).