From b7ac144cd2d242791938b51569effb7a1378a332 Mon Sep 17 00:00:00 2001 From: noodle Date: Mon, 10 Jul 2023 15:40:08 +0300 Subject: Add files --- fun_menu.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 fun_menu.h (limited to 'fun_menu.h') diff --git a/fun_menu.h b/fun_menu.h new file mode 100644 index 0000000..27bce8b --- /dev/null +++ b/fun_menu.h @@ -0,0 +1,28 @@ +#ifndef FUN_MENU_H +#define FUN_MENU_H + +// dump core +void dump_core(void); + +// define error codes +enum ErrorCode { + ERROR_OK, + ERROR_LOCALE_SETTING, + ERROR_COLOR_STARTING, + ERROR_CURSES_SETTING, + ERROR_MEMORY_ALLOCATION, + ERROR_CHARACTER_INPUT, + ERROR_CHARACTER_OUTPUT, + ERROR_WINDOW_CREATION, + ERROR_WINDOW_DRAWING, + ERROR_WINDOW_RENDERING, + ERROR_COLOR_PAIR_DEFINITION, + ERROR_OPTION_SETTING, + ERROR_UNKNOWN, + ERROR_MAX, +}; + +// hold errors of richwin.c +static enum ErrorCode richwin_error_code = ERROR_OK; + +#endif /* FUN_MENU_H */ -- cgit v1.2.3