summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-06-27 22:59:47 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-06-27 22:59:47 -0700
commitb30b39c069b4dd20153c2252c900400a75c31a86 (patch)
treeaa9c2dc116af99570b971d924bc84b18a5671b1d /Makefile
parent368e8a45196958936b92fa5bd9e22cacdd808fdf (diff)
downloadtxr-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