diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-06-27 22:59:47 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-06-27 22:59:47 -0700 |
commit | b30b39c069b4dd20153c2252c900400a75c31a86 (patch) | |
tree | aa9c2dc116af99570b971d924bc84b18a5671b1d /Makefile | |
parent | 368e8a45196958936b92fa5bd9e22cacdd808fdf (diff) | |
download | txr-b30b39c069b4dd20153c2252c900400a75c31a86.tar.gz txr-b30b39c069b4dd20153c2252c900400a75c31a86.tar.bz2 txr-b30b39c069b4dd20153c2252c900400a75c31a86.zip |
Handle two possible home dir locations on Cygwin.
Under the Cygwin port, if we are running in the Cygwin shell
enviroment, there is a HOME variable which contains a POSIX
path like /home/kaz. This path works fine and we use that.
If we are not running in the Cygwin environment, but running
as an application that uses the Cygwin DLL, then the HOME
variable is still defined, but the path doesn't resolve.
We must detect this, and fall back on the USERPROFILE
environment variable, which holds something like C:\Users\kaz.
* parser.c (get_home_path): New static function,
defined separately for Cygwin and other platforms.
(repl): Use get_home_path to determine home directory.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions