|
C-Menu 0.2.9
A User Interface Toolkit
|
Initialization for Menu Application Programs. More...
#include <argp.h>#include <common.h>#include <locale.h>#include <stdlib.h>#include <string.h>#include <unistd.h>Go to the source code of this file.
Enumerations | |
| enum | { IN_SPEC = 257 , OUT_SPEC , BG_XCLR , BO_XCLR , FG_XCLR , LN_BG_CLR , LN_XCLR , GM_BLUE , GM_GRAY , GM_GREEN , GM_RED , XBBLACK , XBBLUE , XBCYAN , XBGREEN , XBLACK , XBLUE , XBMAGENTA , XBRED , XBWHITE , XBYELLOW , XCYAN , CM_EDITOR , XGREEN , XMAGENTA , XRED , XWHITE , XYELLOW , MAPP_DATA , MAPP_HELP , MAPP_HOME , MAPP_MSRC , MAPP_USER , MAPP_HELP_DIR , MAPP_DATA_DIR , MAPP_SPEC , HELP_SPEC } |
Functions | |
| int | write_config (Init *init) |
| Write the current configuration to a file specified in init->minitrc. | |
| void | display_version () |
| Display the version information of the application. | |
| void | mapp_initialization (Init *init, int argc, char **argv) |
| Main initialization function for MAPP - Menu Application. | |
| void | zero_opt_args (Init *init) |
| Initialize optional arguments in the Init struct to default values. | |
| int | parse_config (Init *init) |
| parse the configuration file specified in init->minitrc and set Init struct values accordingly | |
| int | parse_opt_args (Init *, int, char **) |
| void | dump_config (Init *init, char *msg) |
| Dump the current configuration to stdout for debugging purposes. | |
| bool | derive_file_spec (char *file_spec, char *dir, char *file_name) |
| Derive full file specification from directory and file name. | |
| void | opt_prt_char (const char *o, const char *name, const char *value) |
| Print an option and its value in a formatted manner. | |
| void | opt_prt_str (const char *o, const char *name, const char *value) |
| Print an option and its value in a formatted manner for integer values. | |
| void | opt_prt_int (const char *o, const char *name, int value) |
| Print an option and its value in a formatted manner for integer values. | |
| void | opt_prt_double (const char *o, const char *name, double value) |
| Print an option and its value in a formatted manner for double values. | |
| void | opt_prt_bool (const char *o, const char *name, bool value) |
| Print an option and its value in a formatted manner for boolean values. | |
Variables | |
| bool | f_write_config = false |
| bool | f_dump_config = false |
| Init * | init = NULL |
| int | executor = 0 |
| const char * | argp_program_version = CM_VERSION |
| const char * | argp_program_bug_address = "billxwaller@gmail.com" |
| const int | opt_doc_col = 33 |
| anonymous enum |
Definition at line 27 of file init.c.
| int parse_opt_args | ( | Init * | init, |
| int | argc, | ||
| char ** | argv ) |
Definition at line 393 of file init.c.
References Init::argc.
Referenced by menu_cmd_processor(), popup_form(), popup_menu(), popup_pick(), and popup_view().
| const char* argp_program_bug_address = "billxwaller@gmail.com" |
| const char* argp_program_version = CM_VERSION |
| bool f_dump_config = false |
Definition at line 68 of file init.c.
Referenced by mapp_initialization().
| bool f_write_config = false |
Definition at line 67 of file init.c.
Referenced by mapp_initialization().