|
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 <time.h>#include <unistd.h>Go to the source code of this file.
Enumerations | |
| enum | InitVariables { 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 | |
| bool | derive_file_spec (char *file_spec, char *dir, char *file_name) |
| Derive full file specification from directory and file name. | |
| void | display_version () |
| Display the version information of the application. | |
| void | dump_config (Init *init, char *msg) |
| Dump the current configuration to stdout for debugging purposes. | |
| void | mapp_initialization (Init *init, int argc, char **argv) |
| Main initialization function for MAPP - Menu Application. | |
| 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. | |
| 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_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_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_str (const char *o, const char *name, const char *value) |
| Print an option and its value in a formatted manner for integer 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 *init, int argc, char **argv) |
| Parse command-line options and set Init struct values accordingly. | |
| int | write_config (Init *init) |
| Write the current configuration to a file specified in init->minitrc. | |
| void | zero_opt_args (Init *init) |
| Initialize optional arguments in the Init struct to default values. | |
Variables | |
| const char * | argp_program_bug_address = "billxwaller@gmail.com" |
| const char * | argp_program_version = CM_VERSION |
| int | executor = 0 |
| bool | f_dump_config = false |
| bool | f_write_config = false |
| Init * | init = nullptr |
| enum InitVariables |
Definition at line 28 of file init.c.
| const char* argp_program_bug_address = "billxwaller@gmail.com" |
| const char* argp_program_version = CM_VERSION |
| bool f_dump_config = false |
Definition at line 69 of file init.c.
Referenced by mapp_initialization().
| bool f_write_config = false |
Definition at line 68 of file init.c.
Referenced by mapp_initialization().