diff options
| author | Tristan Riehs <tristan.riehs@inria.fr> | 2026-08-04 23:38:19 +0200 |
|---|---|---|
| committer | Tristan Riehs <tristan.riehs@inria.fr> | 2026-08-04 23:38:19 +0200 |
| commit | d10a8424cbf8e529a1b36287d41f7fe6df353e2f (patch) | |
| tree | 45a44dca1163eca25ccd9035187fba048e6653c8 /src/tui.c | |
| parent | ca530eb3a2b65dbc7716e557752c87e36aa1879d (diff) | |
Get rid of the non-reloadable version
It creates two different versions of the code for no valid
reason. dynamically loading the display is not that mystical in the end.
Diffstat (limited to 'src/tui.c')
| -rw-r--r-- | src/tui.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -83,11 +83,9 @@ tui_read_input(void) { switch(c) { -#ifndef NDEBUG case 'g': case 'r': return DISP_RELOAD; -#endif case 'q': return DISP_QUIT; case '\n': @@ -133,7 +131,6 @@ tui_destroy(void) endwin(); } -#ifndef NDEBUG void * tui_pre_reload(void) { @@ -154,15 +151,3 @@ tui_post_reload(void *state) tui_init(); redraw(); } -#endif - -#ifdef NDEBUG -static struct disp __tui_disp = { - .init = tui_init, - .display_calc = tui_display_calc, - .read_input = tui_read_input, - .display_res = tui_display_res, - .destroy = tui_destroy -}; -struct disp *tui_disp = &__tui_disp; -#endif |
