aboutsummaryrefslogtreecommitdiff
path: root/ui/curses/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/curses/ui.c')
-rw-r--r--ui/curses/ui.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/ui/curses/ui.c b/ui/curses/ui.c
index 4d633df..0f87c2d 100644
--- a/ui/curses/ui.c
+++ b/ui/curses/ui.c
@@ -112,7 +112,7 @@ void gfx_init(uint64_t vsiz) {
assert(g_gfx_spas);
}
-void gfx_free() {
+void gfx_free(void) {
if (g_gfx_vsiz == 0) {
return;
}
@@ -312,7 +312,7 @@ void gfx_render(const struct Core *core, uint64_t pos, uint64_t zoom, uint64_t p
// ----------------------------------------------------------------------------
// UI generic functions
// ----------------------------------------------------------------------------
-void ui_line_buff_free() {
+void ui_line_buff_free(void) {
if (g_line_buff) {
free(g_line_buff);
}
@@ -320,7 +320,7 @@ void ui_line_buff_free() {
g_line_buff = NULL;
}
-void ui_line_buff_resize() {
+void ui_line_buff_resize(void) {
ui_line_buff_free();
g_line_buff = calloc(COLS + 1, sizeof(char));
@@ -585,7 +585,7 @@ void ui_print_process(int l) {
// ----------------------------------------------------------------------------
// World page functions
// ----------------------------------------------------------------------------
-void ui_world_resize() {
+void ui_world_resize(void) {
assert(g_wrld_zoom);
g_vlin = 0;
@@ -648,7 +648,7 @@ void ui_print_cell(uint64_t i, uint64_t r, uint64_t x, uint64_t y, uint64_t a) {
mvadd_wch(y, x, &cchar);
}
-void ui_print_wcursor_bar() {
+void ui_print_wcursor_bar(void) {
ui_clear_line(LINES - 1);
const struct Core *core = &g_cores[g_core];
@@ -746,7 +746,7 @@ void ui_print_ipc_field(int l, uint64_t i, int color) {
ui_field(l, PANE_WIDTH, color, A_NORMAL, "%#18x : %#18x : %#18x", i, iinst, iaddr);
}
-void ui_print_ipc_data() {
+void ui_print_ipc_data(void) {
ui_field(0, PANE_WIDTH, PAIR_NORMAL, A_NORMAL, "%18s : %18s : %18s", "ipci", "inst", "addr");
int l = 1 - g_ivpt_scroll;
@@ -900,7 +900,7 @@ void ui_print_log(int l) {
// ----------------------------------------------------------------------------
// Main print function
// ----------------------------------------------------------------------------
-void ui_print() {
+void ui_print(void) {
int l = 1;
ui_line(false, l++, PAIR_HEADER, A_BOLD, "SALIS [%d:%d]", g_core, CORES);
@@ -1158,7 +1158,7 @@ void ev_sel_proc(int ev) {
}
}
-void ev_goto_sel_proc() {
+void ev_goto_sel_proc(void) {
switch (g_page) {
case PAGE_PROCESS:
g_proc_scroll = g_proc_selected;
@@ -1171,7 +1171,7 @@ void ev_goto_sel_proc() {
}
}
-void ev_handle() {
+void ev_handle(void) {
int ev = getch();
if (g_page == PAGE_WORLD && g_wcursor_mode) {
@@ -1300,7 +1300,7 @@ void ev_handle() {
// ----------------------------------------------------------------------------
// Main functions
// ----------------------------------------------------------------------------
-void init() {
+void init(void) {
setlocale(LC_ALL, "");
initscr();
@@ -1341,7 +1341,7 @@ void init() {
ui_world_resize();
}
-void exec() {
+void exec(void) {
while (!g_exit) {
if (g_running) {
clock_t beg = clock();
@@ -1365,7 +1365,7 @@ void exec() {
}
}
-void quit() {
+void quit(void) {
gfx_free();
ui_line_buff_free();
salis_save(SIM_PATH);
@@ -1373,7 +1373,7 @@ void quit() {
endwin();
}
-int main() {
+int main(void) {
init();
exec();
quit();