diff options
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 |