summaryrefslogtreecommitdiff
path: root/usr.bin/tput/tput.c
diff options
context:
space:
mode:
authorScott Soule Cheloha <cheloha@cvs.openbsd.org>2023-10-17 00:04:03 +0000
committerScott Soule Cheloha <cheloha@cvs.openbsd.org>2023-10-17 00:04:03 +0000
commit19c1736b607cf07af1e272ef5638ff0d90b4faff (patch)
treec0f0b795dde45cc2bb305a24d105022be32273c4 /usr.bin/tput/tput.c
parent6c8331d5f0558eccf3afb11aa60351e41724bc93 (diff)
clockintr: move callback-specific API behaviors to "clockrequest" namespace
The API's behavior when invoked from a callback function is impossible to document. Move the special behavior into a distinct namespace, "clockrequest". - Add a 'struct clockrequest'. Basically a stripped-down 'struct clockintr' for exclusive use during clockintr_dispatch(). - In clockintr_queue, replace the "cq_shadow" clockintr with a "cq_request" clockrequest. They serve the same purpose. - CLST_SHADOW_PENDING -> CR_RESCHEDULE; different namespace, same meaning. - CLST_IGNORE_SHADOW -> CLST_IGNORE_REQUEST; same meaning. - Move shadow branch in clockintr_advance() to clockrequest_advance(). - clockintr_request_random() becomes clockrequest_advance_random(). - Delete dead shadow branches in clockintr_cancel(), clockintr_schedule(). - Callback functions now get a clockrequest pointer instead of a special clockintr pointer: update all prototypes, callers. No functional change intended.
Diffstat (limited to 'usr.bin/tput/tput.c')
0 files changed, 0 insertions, 0 deletions