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/disp.h | |
| 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/disp.h')
| -rw-r--r-- | src/disp.h | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -10,33 +10,28 @@ #define DISP_TUI "tui" /* Reserved return values for the read_input function. */ -#ifndef NDEBUG -# define DISP_RELOAD INT_MAX -#endif +#define DISP_RELOAD INT_MAX #define DISP_QUIT (INT_MAX - 1) #define DISP_ERR (INT_MAX - 2) struct disp { + char *name; + void *dl_handle; + char *so_path; void (*init)(void); void (*display_calc)(int, int); int (*read_input)(void); void (*display_res)(bool, int); void (*destroy)(void); -#ifndef NDEBUG - char *name; - void *dl_handle; - char *so_path; void *(*pre_reload)(void); void (*post_reload)(void *); -#endif }; /* Get a display handler for the given display type. */ struct disp *get_disp(char *); + void destroy_disp(struct disp *); -#ifndef NDEBUG void disp_reload(struct disp *); -#endif /* NDEBUG */ #endif /* DISP_H */ |
