summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/fontmap.c
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2010-05-15 01:55:00 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2010-05-15 01:55:00 +0000
commitff95b300f8204c215384425032124f206349bca2 (patch)
treeabdb4fced025cb35b974f9f0ba0c7d6c9fd01094 /Build/source/texk/kpathsea/fontmap.c
parent64252d2baf23bb55ca90c388215779740c73e695 (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/fontmap.c')
-rw-r--r--Build/source/texk/kpathsea/fontmap.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/Build/source/texk/kpathsea/fontmap.c b/Build/source/texk/kpathsea/fontmap.c
index 1eeecde7d9c..2ed383d519e 100644
--- a/Build/source/texk/kpathsea/fontmap.c
+++ b/Build/source/texk/kpathsea/fontmap.c
@@ -47,19 +47,19 @@ token (const_string str)
unsigned len;
const_string start;
string ret;
-
+
while (*str && ISSPACE (*str))
str++;
-
+
start = str;
while (*str && !ISSPACE (*str))
str++;
-
+
len = str - start;
ret = (string)xmalloc (len + 1);
strncpy (ret, start, len);
ret[len] = 0;
-
+
return ret;
}
@@ -89,7 +89,7 @@ map_file_parse (kpathsea kpse, const_string map_filename)
if (!comment_loc) {
comment_loc = strstr (l, "@c");
}
-
+
/* Ignore anything after a % or @c. */
if (comment_loc)
*comment_loc = 0;
@@ -100,7 +100,7 @@ map_file_parse (kpathsea kpse, const_string map_filename)
strtok since this routine is recursive. */
while (*l && ISSPACE (*l))
l++;
-
+
/* If we don't have any filename, that's ok, the line is blank. */
filename = token (l);
if (filename) {
@@ -111,7 +111,7 @@ map_file_parse (kpathsea kpse, const_string map_filename)
WARNING2 ("%s:%u: Filename argument for include directive missing",
map_filename, map_lineno);
} else {
- string include_fname = kpathsea_path_search (kpse,
+ string include_fname = kpathsea_path_search (kpse,
kpse->map_path, alias, false);
if (include_fname) {
map_file_parse (kpse, include_fname);
@@ -141,7 +141,7 @@ map_file_parse (kpathsea kpse, const_string map_filename)
free (orig_l);
}
-
+
xfclose (f, map_filename);
}
@@ -153,10 +153,10 @@ static void
read_all_maps (kpathsea kpse)
{
string *filenames;
-
+
kpse->map_path = kpathsea_init_format (kpse, kpse_fontmap_format);
filenames = kpathsea_all_path_search (kpse, kpse->map_path, MAP_NAME);
-
+
kpse->map = hash_create (MAP_HASH_SIZE);
while (*filenames) {
@@ -173,7 +173,7 @@ kpathsea_fontmap_lookup (kpathsea kpse, const_string key)
{
const_string *ret;
string suffix = find_suffix (key);
-
+
if (kpse->map.size == 0) {
read_all_maps (kpse);
}