diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:26:13 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:34:35 +0300 |
commit | 0eb321bf2c1cc0e048faff26a01f86cdd3ec254f (patch) | |
tree | 71cb9bd9ed121156d3382066c0722c73189afe04 /m_property.c | |
parent | 6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0 (diff) | |
download | mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.bz2 mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.xz |
Remove trailing whitespace from most files
Diffstat (limited to 'm_property.c')
-rw-r--r-- | m_property.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/m_property.c b/m_property.c index 97f1340905..72d2491a87 100644 --- a/m_property.c +++ b/m_property.c @@ -101,7 +101,7 @@ char* m_properties_expand_string(const m_option_t* prop_list,char* str, void *ct int l,fr=0,pos=0,size=strlen(str)+512; char *p = NULL,*e,*ret = malloc(size), num_val; int skip = 0, lvl = 0, skip_lvl = 0; - + while(str[0]) { if(str[0] == '\\') { int sl = 1; @@ -114,7 +114,7 @@ char* m_properties_expand_string(const m_option_t* prop_list,char* str, void *ct p = "\r", l = 1; break; case 't': p = "\t", l = 1; break; - case 'x': + case 'x': if(str[2]) { char num[3] = { str[2], str[3], 0 }; char* end = num; @@ -145,7 +145,7 @@ char* m_properties_expand_string(const m_option_t* prop_list,char* str, void *ct str = e+1; } else if(str[0] == '?' && str[1] == '(' && (e = strchr(str+2,':'))) { lvl++; - if(!skip) { + if(!skip) { int is_not = str[2] == '!'; int pl = e - str - (is_not ? 3 : 2); char pname[pl+1]; @@ -161,9 +161,9 @@ char* m_properties_expand_string(const m_option_t* prop_list,char* str, void *ct str = e+1, l = 0; } else p = str, l = 1, str++; - + if(skip || l <= 0) continue; - + if(pos+l+1 > size) { size = pos+l+512; ret = realloc(ret,size); @@ -172,7 +172,7 @@ char* m_properties_expand_string(const m_option_t* prop_list,char* str, void *ct pos += l; if(fr) free(p), fr = 0; } - + ret[pos] = 0; return ret; } @@ -180,7 +180,7 @@ char* m_properties_expand_string(const m_option_t* prop_list,char* str, void *ct void m_properties_print_help_list(const m_option_t* list) { char min[50],max[50]; int i,count = 0; - + mp_tmsg(MSGT_CFGPARSER, MSGL_INFO, "\n Name Type Min Max\n\n"); for(i = 0 ; list[i].name ; i++) { const m_option_t* opt = &list[i]; |