You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because we have no unistd.h? Perhaps because it depends on counting rasters (this is because it should also work when in HYPPO mode, where stuff like CIA does not work as one would expect)?
My thinking is that the library tries to mimick libc and I'd like the interface to follow a path of least surprises. I guess HAL is short for hardware-abstraction-layer(?) and is probably not the first place one would look for usleep(). Not having a unistd.h is quickly fixed but if so, we should probably keep a working hal.h around and emit a deprecation warning if someone tries to use it. In any case, this is likely not a high priority.
usleep is used a lot in the core utilities of MEGA65, but it is an easy change to switch to unistd.h. And it won't hurt the current state, as I pinned all of them to v0.2.0 because of the other changes.
So feel free to make it more compatible to the standard and we will switch the core when everything is in a stable state again.
And for compatibility we can keep a hal.h that include unistd.h and emits a warning.
The
usleep()
function is usually found inunistd.h
. Is there a reason it's inhal.h
?The text was updated successfully, but these errors were encountered: