diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2024-05-21 10:23:25 -0600 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2024-05-21 20:21:46 -0600 |
| commit | 7e85064ac77ea43e84d88eb910b0adb6f07d5d12 (patch) | |
| tree | 60087cfc22d2e8c67b2d83a7202a8bbb2a5c1c1e /ui-terminal-curses.c | |
| parent | 486e8631ce9269d34c00c07038e04013640f8825 (diff) | |
| download | vis-7e85064ac77ea43e84d88eb910b0adb6f07d5d12.tar.gz vis-7e85064ac77ea43e84d88eb910b0adb6f07d5d12.tar.xz | |
remove some ui pointer chasing
There only exists a single Ui so there is no need to force a
pointer redirection for accessing it.
The Ui member was moved down in vis-core.h to punt around an issue
with the way lua checks for existing objects. It may show up again
as I flatten more structs.
Diffstat (limited to 'ui-terminal-curses.c')
| -rw-r--r-- | ui-terminal-curses.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-terminal-curses.c b/ui-terminal-curses.c index 2b4a6fd..c3ae064 100644 --- a/ui-terminal-curses.c +++ b/ui-terminal-curses.c @@ -276,8 +276,8 @@ static bool ui_term_backend_init(Ui *tui, char *term) { return true; } -static Ui *ui_term_backend_new(void) { - return calloc(1, sizeof(Ui)); +static bool ui_backend_init(Ui *ui) { + return true; } void ui_terminal_resume(Ui *term) { } |
