Changeset 06b5893 for set.c


Ignore:
Timestamp:
2011-12-07T21:47:25Z (12 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
57da960
Parents:
aee8c19
Message:

Merging non-SASL authentication patch from #863. This also implements
hidden-default settings, which means a setting is hidden unless it was
changed from the default. This seems like appropriate behaviour for
something as obscure as this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • set.c

    raee8c19 r06b5893  
    112112}
    113113
     114int set_isvisible( set_t *set )
     115{
     116        /* the default value is not stored in value, only in def */
     117        return !( ( set->flags & SET_HIDDEN ) ||
     118                  ( ( set->flags & SET_HIDDEN_DEFAULT ) &&
     119                    ( set->value == NULL ) ) );
     120}
     121
    114122int set_setstr( set_t **head, const char *key, char *value )
    115123{
Note: See TracChangeset for help on using the changeset viewer.