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