mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-27 06:46:44 -04:00
config: add {str,value}_to_uint{16,32}()
This allows us to pass the final pointer directly to the conversion functions, as well as allowing us to print outside-range errors.
This commit is contained in:
parent
3b27a665da
commit
d29c3cf7b7
5 changed files with 93 additions and 107 deletions
|
|
@ -526,7 +526,7 @@ struct terminal {
|
|||
int timer_fd;
|
||||
} title;
|
||||
|
||||
int scrollback_lines; /* Number of scrollback lines, from conf (TODO: move out from render struct?) */
|
||||
uint32_t scrollback_lines; /* Number of scrollback lines, from conf (TODO: move out from render struct?) */
|
||||
|
||||
struct {
|
||||
bool enabled;
|
||||
|
|
@ -535,7 +535,7 @@ struct terminal {
|
|||
|
||||
/* Render threads + synchronization primitives */
|
||||
struct {
|
||||
size_t count;
|
||||
uint16_t count;
|
||||
sem_t start;
|
||||
sem_t done;
|
||||
mtx_t lock;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue