fun-menu

ncurses learning thing
git clone https://git.pastanoggin.com/fun-menu.git
Log | Files | Refs | README | LICENSE

fun_menu.h (532B)


      1 #ifndef FUN_MENU_H
      2 #define FUN_MENU_H
      3 
      4 // dump core
      5 void dump_core(void);
      6 
      7 // define error codes
      8 enum ErrorCode {
      9 	ERROR_OK,
     10 	ERROR_LOCALE_SETTING,
     11 	ERROR_COLOR_STARTING,
     12 	ERROR_CURSES_SETTING,
     13 	ERROR_MEMORY_ALLOCATION,
     14 	ERROR_CHARACTER_INPUT,
     15 	ERROR_CHARACTER_OUTPUT,
     16 	ERROR_WINDOW_CREATION,
     17 	ERROR_WINDOW_DRAWING,
     18 	ERROR_WINDOW_RENDERING,
     19 	ERROR_COLOR_PAIR_DEFINITION,
     20 	ERROR_OPTION_SETTING,
     21 	ERROR_UNKNOWN,
     22 	ERROR_MAX,
     23 };
     24 
     25 // hold errors of richwin.c
     26 static enum ErrorCode richwin_error_code = ERROR_OK;
     27 
     28 #endif /* FUN_MENU_H */