Ecore_Config no longer saves configurations passed on the command line - due to popular demand

SVN revision: 12287
This commit is contained in:
handyande 2004-11-27 23:14:30 +00:00 committed by handyande
parent b2ce0225c4
commit 3a1f56385d
4 changed files with 12 additions and 4 deletions

View File

@ -60,7 +60,8 @@ typedef enum Ecore_Config_Flag
PF_NONE = 0,
PF_BOUNDS = 1,
PF_MODIFIED = 2,
PF_SYSTEM = 4
PF_SYSTEM = 4,
PF_CMDLN = 8
} Ecore_Config_Flag;
/**

View File

@ -541,6 +541,7 @@ ecore_config_typed_val(Ecore_Config_Prop * e, void *val, int type)
ecore_config_bound(e);
e->flags |= PF_MODIFIED;
e->flags = e->flags & ~PF_CMDLN;
return ECORE_CONFIG_ERR_SUCC;
}
return ECORE_CONFIG_ERR_IGNORED;

View File

@ -574,7 +574,10 @@ ecore_config_parse_set(Ecore_Config_Prop * prop, char *arg, char *opt,
return ECORE_CONFIG_PARSE_EXIT;
}
else
ecore_config_set(prop->key, arg);
{
ecore_config_set(prop->key, arg);
prop->flags |= PF_CMDLN;
}
return ECORE_CONFIG_PARSE_CONTINUE;
}

View File

@ -213,12 +213,15 @@ ecore_config_file_save(char *file)
while (next)
{
/* let the config_db deal with this
if (!(next->flags & PF_MODIFIED))
* handyande: hmm, not sure that it ever does - reinstating until
* further discussions satisfy me!
*/
if (!(next->flags & PF_MODIFIED) || next->flags & PF_CMDLN)
{
next = next->next;
continue;
}
*/
tmp = NULL;
switch (next->type)