Added stringifying escape & F keys; add sound, sys FFI; unconflict time.h and timer.h

This commit is contained in:
2022-12-16 17:54:05 +00:00
parent bfddf39a38
commit 6227754925
11 changed files with 149 additions and 66 deletions

View File

@@ -77,12 +77,12 @@ void timer_remove(struct timer *t) {
timers[i].timerid = i;
}
void timer_settime(struct timer *t, double interval) {
void timerr_settime(struct timer *t, double interval) {
//double elapsed = time - (t->fire_time - t->interval);
t->interval = interval;
t->remain_time = t->interval;
// TODO: timer_settime reacts to elapsed time
// TODO: timerr_settime reacts to elapsed time
}
void *arrfind(void *arr, int (*valid)(void *arr, void *cmp), void *cmp)