diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-08-02 15:40:28 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-08-02 15:40:28 +0000 |
commit | 6c2467cbb8e21577155060c598661d71024c1893 (patch) | |
tree | af6de1d2e1307892a2787989109e71c4205e7da4 /Build/source/texk/mendexk/kp.c | |
parent | 8d812296011b75f9bd787ff9ebe574a4265a11c9 (diff) |
mendexk: remove support for ancient kpathsea
git-svn-id: svn://tug.org/texlive/trunk@23316 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/mendexk/kp.c')
-rw-r--r-- | Build/source/texk/mendexk/kp.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/Build/source/texk/mendexk/kp.c b/Build/source/texk/mendexk/kp.c index efc3823e37b..9480c6dda4f 100644 --- a/Build/source/texk/mendexk/kp.c +++ b/Build/source/texk/mendexk/kp.c @@ -12,7 +12,6 @@ KP_init(char *prog) return 0; } -#ifdef KPATHSEA3 /* KP_get_value(char *var,char *def_val) ARGUMENTS: char *var: name of variable. @@ -24,33 +23,6 @@ const char *KP_get_value(const char *var, const char *def_val) return p ? p : def_val; } -#else - -#include <stdlib.h> /* for getenv() */ - -/* KP_get_value(char *env,char *cnf,char *def_val) - ARGUMENTS: - char *env: name of environment variable. - char *cnf: name of variable in `texmf.cnf'. - char *def_val: default value. - */ -const char *KP_get_value(const char *env, const char *cnf, const char *def_val) -{ - const char *val; - char *cnf_val,*env_val; - - val = def_val ? def_val : ""; - - cnf_val = kpse_cnf_get(cnf); - env_val = getenv(env); - if (cnf_val) val = kpse_expand_default(cnf_val,val); - if (env_val) val = kpse_expand_default(env_val,val); - - return val[0] ? val : ((cnf_val || env_val) ? val : NULL); -} -#endif - -#ifdef KPATHSEA3 /* KP_get_path(char *var, char *def_val) ARGUMENTS: char *var: name of variable. @@ -66,19 +38,12 @@ static const char *KP_get_path(const char *var, const char *def_val) p = kpse_path_expand(avar); return (p && *p) ? p : def_val; } -#endif /* */ int KP_entry_filetype(KpathseaSupportInfo *info) { -#ifdef KPATHSEA3 info->path = KP_get_path(info->var_name,info->path); -#else - const char *path; - path = KP_get_value(info->var_name,info->var_name,info->path); - info->path = kpse_path_expand(path); -#endif return 0; } |