|
ELinks 0.18.0
|
Instructions for registering an option, and storage for the option itself. More...
#include <options.h>

Data Fields | |
| struct option_init | init |
| How to initialize and register option. | |
| struct option | option |
| register_options() constructs the option here, based on the instructions in init. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| void | register_options (union option_info info[], struct option *tree) |
| void | unregister_options (union option_info info[], struct option *tree) |
| #define | NULL_OPTION_INFO |
| #define | INIT_OPT_BOOL(path, capt, name, flags, def, desc) |
| #define | INIT_OPT_INT(path, capt, name, flags, min, max, def, desc) |
| #define | INIT_OPT_LONG(path, capt, name, flags, min, max, def, desc) |
| #define | INIT_OPT_STRING(path, capt, name, flags, def, desc) |
| #define | INIT_OPT_CODEPAGE(path, capt, name, flags, def, desc) |
| #define | INIT_OPT_COLOR(path, capt, name, flags, def, desc) |
| #define | INIT_OPT_LANGUAGE(path, capt, name, flags, desc) |
| #define | INIT_OPT_COMMAND(path, capt, name, flags, cmd, desc) |
| #define | INIT_OPT_CMDALIAS(path, capt, name, flags, def, desc) |
| #define | INIT_OPT_ALIAS(path, name, flags, def) |
| #define | INIT_OPT_TREE(path, capt, name, flags, desc) |
Instructions for registering an option, and storage for the option itself.
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
| struct option_init option_info::init |
How to initialize and register option.
This must be the first member of the union, to let C89 compilers initialize it.
| struct option option_info::option |
register_options() constructs the option here, based on the instructions in init.
By doing so, it of course overwrites init. Thus, only option can be used afterwards.