diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-05-10 09:48:04 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-05-10 09:48:04 +0000 |
commit | a849488fd6c6ab60c6b927fd43e04691a2634f00 (patch) | |
tree | 8c018110479a4c3016bc7217564d320890dd4e95 /Build/source/texk/kpathsea/fontmap.c | |
parent | e59c06f29ee429a76948d050f6c56081e031c755 (diff) |
kpathsea: more const
git-svn-id: svn://tug.org/texlive/trunk@18187 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/fontmap.c')
-rw-r--r-- | Build/source/texk/kpathsea/fontmap.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/Build/source/texk/kpathsea/fontmap.c b/Build/source/texk/kpathsea/fontmap.c index 756fe936399..1eeecde7d9c 100644 --- a/Build/source/texk/kpathsea/fontmap.c +++ b/Build/source/texk/kpathsea/fontmap.c @@ -168,31 +168,31 @@ read_all_maps (kpathsea kpse) /* Look up KEY in texfonts.map's; if it's not found, remove any suffix from KEY and try again. Create the map if necessary. */ -string * -kpathsea_fontmap_lookup (kpathsea kpse, const_string key) +const_string * +kpathsea_fontmap_lookup (kpathsea kpse, const_string key) { - string *ret; + const_string *ret; string suffix = find_suffix (key); if (kpse->map.size == 0) { read_all_maps (kpse); } - ret = hash_lookup (kpse->map, key); + ret = (const_string *) hash_lookup (kpse->map, key); if (!ret) { /* OK, the original KEY didn't work. Let's check for the KEY without an extension -- perhaps they gave foobar.tfm, but the mapping only defines `foobar'. */ if (suffix) { string base_key = remove_suffix (key); - ret = hash_lookup (kpse->map, base_key); + ret = (const_string *) hash_lookup (kpse->map, base_key); free (base_key); } } /* Append any original suffix. */ if (ret && suffix) { - string *elt; + const_string *elt; for (elt = ret; *elt; elt++) { *elt = extend_filename (*elt, suffix); } @@ -200,11 +200,3 @@ kpathsea_fontmap_lookup (kpathsea kpse, const_string key) return ret; } - -#if defined(KPSE_COMPAT_API) -string * -kpse_fontmap_lookup (const_string key) -{ - return kpathsea_fontmap_lookup(kpse_def, key); -} -#endif |