1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 17:24:50 +01:00

unposted: internal: Add some comments and fix indentation. No functional change.

This commit is contained in:
Daniel Shahaf 2020-01-16 20:23:50 +00:00
parent 5e843a3721
commit 3511169731
2 changed files with 18 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2020-01-26 Daniel Shahaf <danielsh@apache.org>
* unposted: Src/init.c: internal: Add some comments and fix
indentation. No functional change.
2020-01-23 Daniel Shahaf <danielsh@apache.org>
* 45340: Src/params.c: internal: Document the difference between

View file

@ -994,18 +994,29 @@ setupvals(char *cmd, char *runscript, char *zsh_name)
# endif /* ADDITONAL_FPATH */
fpath = fpathptr = (char **)zalloc((fpathlen+1)*sizeof(char *));
# ifdef FIXED_FPATH_DIR
/* Zeroth: /usr/local/share/zsh/site-functions */
*fpathptr++ = ztrdup(FIXED_FPATH_DIR);
fpathlen--;
# endif
# ifdef SITEFPATH_DIR
/* First: the directory from --enable-site-fndir
*
* default: /usr/local/share/zsh/site-functions
* (but changeable by passing --prefix or --datadir to configure) */
*fpathptr++ = ztrdup(SITEFPATH_DIR);
fpathlen--;
# endif /* SITEFPATH_DIR */
# if defined(ADDITIONAL_FPATH)
/* Second: the directories from --enable-additional-fpath
*
* default: empty list */
for (j = 0; j < more_fndirs_len; j++)
*fpathptr++ = ztrdup(more_fndirs[j]);
# endif
# ifdef FPATH_DIR
/* Third: The directory from --enable-fndir
*
* default: /usr/local/share/zsh/${ZSH_VERSION}/functions */
# ifdef FPATH_SUBDIRS
# ifdef ADDITIONAL_FPATH
for (j = more_fndirs_len; j < fpathlen; j++)