diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2007-07-06 21:52:38 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-07-06 21:52:38 +0000 |
| commit | 1b52f47cf285d5f3835bce7ad73f360bd327d4e8 (patch) | |
| tree | af5f6637517084bc7914dacfc7fda0a5799f3220 /Src/Modules/zprof.c | |
| parent | 23664: handle bts cache and cleancache subcommands. (diff) | |
| download | zsh-1b52f47cf285d5f3835bce7ad73f360bd327d4e8.tar zsh-1b52f47cf285d5f3835bce7ad73f360bd327d4e8.tar.gz zsh-1b52f47cf285d5f3835bce7ad73f360bd327d4e8.tar.bz2 zsh-1b52f47cf285d5f3835bce7ad73f360bd327d4e8.tar.lz zsh-1b52f47cf285d5f3835bce7ad73f360bd327d4e8.tar.xz zsh-1b52f47cf285d5f3835bce7ad73f360bd327d4e8.tar.zst zsh-1b52f47cf285d5f3835bce7ad73f360bd327d4e8.zip | |
23665: autoloading of module features and related tweaks
Diffstat (limited to 'Src/Modules/zprof.c')
| -rw-r--r-- | Src/Modules/zprof.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Src/Modules/zprof.c b/Src/Modules/zprof.c index b30e44432..bc97771c0 100644 --- a/Src/Modules/zprof.c +++ b/Src/Modules/zprof.c @@ -225,7 +225,7 @@ zprof_wrapper(Eprog prog, FuncWrap w, char *name) struct timezone dummy; double prev = 0, now; - if (zprof_module && !(zprof_module->flags & MOD_UNLOAD)) { + if (zprof_module && !(zprof_module->node.flags & MOD_UNLOAD)) { active = 1; if (!(f = findpfunc(name))) { f = (Pfunc) zalloc(sizeof(*f)); @@ -260,7 +260,7 @@ zprof_wrapper(Eprog prog, FuncWrap w, char *name) } runshfunc(prog, w, name); if (active) { - if (zprof_module && !(zprof_module->flags & MOD_UNLOAD)) { + if (zprof_module && !(zprof_module->node.flags & MOD_UNLOAD)) { tv.tv_sec = tv.tv_usec = 0; gettimeofday(&tv, &dummy); @@ -315,7 +315,7 @@ setup_(Module m) int features_(Module m, char ***features) { - *features = featuresarray(m->nam, &module_features); + *features = featuresarray(m, &module_features); return 0; } @@ -323,7 +323,7 @@ features_(Module m, char ***features) int enables_(Module m, int **enables) { - return handlefeatures(m->nam, &module_features, enables); + return handlefeatures(m, &module_features, enables); } /**/ @@ -345,7 +345,7 @@ cleanup_(Module m) freepfuncs(calls); freeparcs(arcs); deletewrapper(m, wrapper); - return setfeatureenables(m->nam, &module_features, NULL); + return setfeatureenables(m, &module_features, NULL); } /**/ |
