diff options
author | Clint Adams <clint@users.sourceforge.net> | 2001-06-08 18:34:53 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2001-06-08 18:34:53 +0000 |
commit | 975c0b44c56c7bf12f93a54f20bbfeff06fac7da (patch) | |
tree | e62ebdcb89cc1082ed22a2c53d40831fe0a496dd /Src/utils.c | |
parent | 9675a70946e07dee97a61ef0408595a6a52b7b21 (diff) | |
download | zsh-975c0b44c56c7bf12f93a54f20bbfeff06fac7da.tar.gz zsh-975c0b44c56c7bf12f93a54f20bbfeff06fac7da.tar.xz zsh-975c0b44c56c7bf12f93a54f20bbfeff06fac7da.zip |
14813: autoload functions from deleted .zwc files
Diffstat (limited to 'Src/utils.c')
-rw-r--r-- | Src/utils.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Src/utils.c b/Src/utils.c index 6bede2e43..cd7685e6e 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -3829,3 +3829,20 @@ mailstat(char *path, struct stat *st) return 0; } #endif + +/**/ +mod_export int +zwcstat(char *filename, struct stat *buf, FuncDump dumps) +{ + FuncDump f; + + if (stat(filename, buf)) { +#ifdef HAVE_FSTAT + for (f = dumps; f; f = f->next) { + if (!fstat(f->fd, buf)) return 0; + } +#endif + return 1; + } else return 0; + +} |