diff options
author | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2024-06-30 16:20:34 +0900 |
---|---|---|
committer | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2024-06-30 16:20:34 +0900 |
commit | 46e6de294243e8dc593551bfe8c0e7090d03a159 (patch) | |
tree | a898e2c4504c8da30fdea2aebf034f7edb0e7a3e /src/cli.c | |
parent | 5d5ff4076abe2e8aeb40980ec1b3ef9ee5fa92e6 (diff) |
Improve dynamic loading
Make loading code cleaner and prefix public
function names to allow static compilation.
Diffstat (limited to 'src/cli.c')
-rw-r--r-- | src/cli.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -23,16 +23,16 @@ #include "_readline.h" #include "disp.h" -void init(void) {} +void cli_init(void) {} void -display_calc(int x, int y) +cli_display_calc(int x, int y) { printf("%d + %d = ", x, y); } int -read_input(void) +cli_read_input(void) { char *txt = readline(""); @@ -49,14 +49,14 @@ read_input(void) } void -display_res(bool ok, int ms) +cli_display_res(bool ok, int ms) { printf("%s\t%dms\n", ok ? "RIGHT" : "WRONG", ms); } -void destroy(void) {} +void cli_destroy(void) {} #ifndef NDEBUG -void *pre_reload(void) {return NULL;} -void post_reload(void *) {} +void *cli_pre_reload(void) {return NULL;} +void cli_post_reload(void *) {} #endif |