diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2010-05-15 01:55:00 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2010-05-15 01:55:00 +0000 |
commit | ff95b300f8204c215384425032124f206349bca2 (patch) | |
tree | abdb4fced025cb35b974f9f0ba0c7d6c9fd01094 /Build/source/texk/kpathsea/path-elt.c | |
parent | 64252d2baf23bb55ca90c388215779740c73e695 (diff) |
remove trailing spaces.
git-svn-id: svn://tug.org/texlive/trunk@18276 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/path-elt.c')
-rw-r--r-- | Build/source/texk/kpathsea/path-elt.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Build/source/texk/kpathsea/path-elt.c b/Build/source/texk/kpathsea/path-elt.c index 3cc3a1d1cff..eb45d38da02 100644 --- a/Build/source/texk/kpathsea/path-elt.c +++ b/Build/source/texk/kpathsea/path-elt.c @@ -37,18 +37,18 @@ element (kpathsea kpse, const_string passed_path, boolean env_p) string ret; int brace_level; unsigned len; - + if (passed_path) kpse->path = passed_path; /* Check if called with NULL, and no previous path (perhaps we reached the end). */ else if (!kpse->path) return NULL; - + /* OK, we have a non-null `path' if we get here. */ assert (kpse->path); p = kpse->path; - + /* Find the next colon not enclosed by braces (or the end of the path). */ brace_level = 0; while (*p != 0 && !(brace_level == 0 @@ -57,7 +57,7 @@ element (kpathsea kpse, const_string passed_path, boolean env_p) else if (*p == '}') --brace_level; ++p; } - + /* Return the substring starting at `path'. */ len = p - kpse->path; @@ -109,13 +109,13 @@ print_path_elements (const_string path) { string elt; printf ("Elements of `%s':", path ? path : "(null)"); - + for (elt = kpse_path_element (path); elt != NULL; elt = kpse_path_element (NULL)) { printf (" %s", *elt ? elt : "`'"); } - + puts ("."); } @@ -128,10 +128,10 @@ main () print_path_elements ("a"); /* a */ print_path_elements (ENV_SEP_STRING); /* "", "" */ print_path_elements (ENV_SEP_STRING ENV_SEP_STRING); /* "", "", "" */ - print_path_elements ("a" ENV_SEP_STRING); /* a, "" */ - print_path_elements (ENV_SEP_STRING "b"); /* "", b */ - print_path_elements ("a" ENV_SEP_STRING "b"); /* a, b */ - + print_path_elements ("a" ENV_SEP_STRING); /* a, "" */ + print_path_elements (ENV_SEP_STRING "b"); /* "", b */ + print_path_elements ("a" ENV_SEP_STRING "b"); /* a, b */ + return 0; } |