mirror of https://github.com/mpv-player/mpv
Fix some typos in comments
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23888 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f63b46fa25
commit
2f7192222a
10
m_config.c
10
m_config.c
|
@ -204,7 +204,7 @@ m_config_add_option(m_config_t *config, m_option_t *arg, char* prefix) {
|
||||||
} else
|
} else
|
||||||
co->name = arg->name;
|
co->name = arg->name;
|
||||||
|
|
||||||
// Option with childs -> add them
|
// Option with children -> add them
|
||||||
if(arg->type->flags & M_OPT_TYPE_HAS_CHILD) {
|
if(arg->type->flags & M_OPT_TYPE_HAS_CHILD) {
|
||||||
m_option_t *ol = arg->p;
|
m_option_t *ol = arg->p;
|
||||||
int i;
|
int i;
|
||||||
|
@ -213,7 +213,7 @@ m_config_add_option(m_config_t *config, m_option_t *arg, char* prefix) {
|
||||||
m_config_add_option(config,&ol[i], co->name);
|
m_config_add_option(config,&ol[i], co->name);
|
||||||
} else {
|
} else {
|
||||||
m_config_option_t *i;
|
m_config_option_t *i;
|
||||||
// Check if there is alredy an option pointing to this address
|
// Check if there is already an option pointing to this address
|
||||||
if(arg->p) {
|
if(arg->p) {
|
||||||
for(i = config->opts ; i ; i = i->next ) {
|
for(i = config->opts ; i ; i = i->next ) {
|
||||||
if(i->opt->p == arg->p) { // So we don't save the same vars more than 1 time
|
if(i->opt->p == arg->p) { // So we don't save the same vars more than 1 time
|
||||||
|
@ -227,7 +227,7 @@ m_config_add_option(m_config_t *config, m_option_t *arg, char* prefix) {
|
||||||
// Allocate a slot for the defaults
|
// Allocate a slot for the defaults
|
||||||
sl = calloc(1,sizeof(m_config_save_slot_t) + arg->type->size);
|
sl = calloc(1,sizeof(m_config_save_slot_t) + arg->type->size);
|
||||||
m_option_save(arg,sl->data,(void**)arg->p);
|
m_option_save(arg,sl->data,(void**)arg->p);
|
||||||
// Hack to avoid too much trouble with dynamicly allocated data :
|
// Hack to avoid too much trouble with dynamically allocated data :
|
||||||
// We always use a dynamic version
|
// We always use a dynamic version
|
||||||
if((arg->type->flags & M_OPT_TYPE_DYNAMIC) && arg->p && (*(void**)arg->p)) {
|
if((arg->type->flags & M_OPT_TYPE_DYNAMIC) && arg->p && (*(void**)arg->p)) {
|
||||||
*(void**)arg->p = NULL;
|
*(void**)arg->p = NULL;
|
||||||
|
@ -299,7 +299,7 @@ m_config_parse_option(m_config_t *config, char* arg, char* param,int set) {
|
||||||
assert(co->opt->type->parse);
|
assert(co->opt->type->parse);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Check if this option isn't forbiden in the current mode
|
// Check if this option isn't forbidden in the current mode
|
||||||
if((config->mode == M_CONFIG_FILE) && (co->opt->flags & M_OPT_NOCFG)) {
|
if((config->mode == M_CONFIG_FILE) && (co->opt->flags & M_OPT_NOCFG)) {
|
||||||
mp_msg(MSGT_CFGPARSER, MSGL_ERR,MSGTR_InvalidCfgfileOption,arg);
|
mp_msg(MSGT_CFGPARSER, MSGL_ERR,MSGTR_InvalidCfgfileOption,arg);
|
||||||
return M_OPT_INVALID;
|
return M_OPT_INVALID;
|
||||||
|
@ -309,7 +309,7 @@ m_config_parse_option(m_config_t *config, char* arg, char* param,int set) {
|
||||||
return M_OPT_INVALID;
|
return M_OPT_INVALID;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Option with childs are a bit different to parse
|
// Option with children are a bit different to parse
|
||||||
if(co->opt->type->flags & M_OPT_TYPE_HAS_CHILD) {
|
if(co->opt->type->flags & M_OPT_TYPE_HAS_CHILD) {
|
||||||
char** lst = NULL;
|
char** lst = NULL;
|
||||||
int i,sr;
|
int i,sr;
|
||||||
|
|
Loading…
Reference in New Issue