aboutsummaryrefslogtreecommitdiff
path: root/src/calculer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/calculer.c')
-rw-r--r--src/calculer.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/calculer.c b/src/calculer.c
index eab2bde..589724f 100644
--- a/src/calculer.c
+++ b/src/calculer.c
@@ -200,12 +200,19 @@ main(int argc, char *argv[])
disp->display_calc(x, y);
void *measure_data = measure_before();
input = disp->read_input();
- if (input == INT_MAX)
+ if ((input == DISP_QUIT) || (input == DISP_ERR))
{
- disp->destroy();
+ destroy_disp(disp);
fclose(logfile);
exit(0);
}
+#ifndef NDEBUG
+ else if (input == DISP_RELOAD)
+ {
+ disp_reload(disp);
+ continue;
+ }
+#endif
measure_after(measure_data, input == res);
disp->display_res(input == res, 0);
}