Fix style issues.

* Rename mch_full_name to mch_get_absolute_path.
* Rename mch_is_full_name to mch_is_absolute_path.
* Add a lot of missing parentheses.
* Remove yoda-conditions for consistency.
* Remove spaces in function declaration.
This commit is contained in:
Thomas Wienecke
2014-03-05 12:34:15 +01:00
committed by Thiago de Arruda
parent fdba1761f6
commit fc86866402
12 changed files with 52 additions and 45 deletions

View File

@@ -5065,7 +5065,7 @@ int path_with_url(char_u *fname)
*/
int vim_isAbsName(char_u *name)
{
return path_with_url(name) != 0 || mch_is_full_name(name);
return path_with_url(name) != 0 || mch_is_absolute_path(name);
}
/*
@@ -5090,7 +5090,7 @@ vim_FullName (
url = path_with_url(fname);
if (!url)
retval = mch_full_name(fname, buf, len, force);
retval = mch_get_absolute_path(fname, buf, len, force);
if (url || retval == FAIL) {
/* something failed; use the file name (truncate when too long) */
vim_strncpy(buf, fname, len - 1);