diff options
author | Karl Berry <karl@freefriends.org> | 2008-01-14 01:23:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-01-14 01:23:37 +0000 |
commit | 13e12240ca1e2232a10f302e2d030e8eeaa1354b (patch) | |
tree | 38d32ed09f94c6b23b6c7201299a915ba425e3dd /Build/source/texk/kpathsea/tilde.h | |
parent | 72a8586805bfdecad5305807e1dad56cbee24156 (diff) |
make ~ expand to USERPROFILE on Windows
git-svn-id: svn://tug.org/texlive/trunk@6222 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/tilde.h')
-rw-r--r-- | Build/source/texk/kpathsea/tilde.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Build/source/texk/kpathsea/tilde.h b/Build/source/texk/kpathsea/tilde.h index 81550e72ca3..138a151a0ce 100644 --- a/Build/source/texk/kpathsea/tilde.h +++ b/Build/source/texk/kpathsea/tilde.h @@ -1,6 +1,6 @@ /* tilde.h: Declare tilde expander. - Copyright 1993 Karl Berry. + Copyright 1993, 2008 Karl Berry. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -12,11 +12,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -*/ + You should have received a copy of the GNU Lesser General Public License + along with this library; if not, see <http://www.gnu.org/licenses/>. */ #ifndef KPATHSEA_TILDE_H #define KPATHSEA_TILDE_H @@ -25,8 +22,9 @@ #include <kpathsea/types.h> -/* Replace a leading ~ or ~name in FILENAME with getenv ("HOME") or - name's home directory, respectively. FILENAME may not be null. */ +/* Replace a leading ~ or ~NAME in FILENAME with getenv ("HOME"), or + getenv ('USERPROFILE") on Windows, or with NAME's home directory, + respectively. Excise trailing slashes. FILENAME may not be null. */ extern string kpse_tilde_expand P1H(const_string filename); |