mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
config: Explain why get_opt_rec() does not follow OPT_ALIAS.
This commit is contained in:
parent
1d16e90dca
commit
4960c65f20
@ -157,7 +157,14 @@ debug_check_option_syntax(struct option *option)
|
||||
/* Ugly kludge */
|
||||
static int no_autocreate = 0;
|
||||
|
||||
/* Get record of option of given name, or NULL if there's no such option. */
|
||||
/** Get record of option of given name, or NULL if there's no such option.
|
||||
*
|
||||
* If the specified option is an ::OPT_ALIAS, this function returns the
|
||||
* alias, rather than the option to which the alias refers. It must
|
||||
* work this way because the alias may have the ::OPT_ALIAS_NEGATE flag.
|
||||
* Instead, if the caller tries to read or set the value of the alias,
|
||||
* the functions associated with ::OPT_ALIAS will forward the operation
|
||||
* to the underlying option. */
|
||||
struct option *
|
||||
get_opt_rec(struct option *tree, const unsigned char *name_)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user