comparison src/misc1.c @ 12269:d2373927d76d v8.0.1014

patch 8.0.1014: old compiler doesn't know uint32_t commit https://github.com/vim/vim/commit/b47a2597e64b4c4f728433ae005cf6ff1d0dd5c1 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 30 13:22:28 2017 +0200 patch 8.0.1014: old compiler doesn't know uint32_t Problem: Old compiler doesn't know uint32_t. Warning for using NULL instead of NUL. Solution: Use UINT32_T. Use NUL instead of NULL.
author Christian Brabandt <cb@256bit.org>
date Wed, 30 Aug 2017 13:30:04 +0200
parents 03e4be2e3d53
children 1ff5e5dfa9b0
comparison
equal deleted inserted replaced
12268:70e04b97b0f3 12269:d2373927d76d
3755 * Typically, $HOME is not defined on Windows, unless the user has 3755 * Typically, $HOME is not defined on Windows, unless the user has
3756 * specifically defined it for Vim's sake. However, on Windows NT 3756 * specifically defined it for Vim's sake. However, on Windows NT
3757 * platforms, $HOMEDRIVE and $HOMEPATH are automatically defined for 3757 * platforms, $HOMEDRIVE and $HOMEPATH are automatically defined for
3758 * each user. Try constructing $HOME from these. 3758 * each user. Try constructing $HOME from these.
3759 */ 3759 */
3760 if (var == NULL || *var == NULL) 3760 if (var == NULL || *var == NUL)
3761 { 3761 {
3762 char_u *homedrive, *homepath; 3762 char_u *homedrive, *homepath;
3763 3763
3764 homedrive = mch_getenv((char_u *)"HOMEDRIVE"); 3764 homedrive = mch_getenv((char_u *)"HOMEDRIVE");
3765 homepath = mch_getenv((char_u *)"HOMEPATH"); 3765 homepath = mch_getenv((char_u *)"HOMEPATH");