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/Zle/zleparameter.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/Zle/zleparameter.c')
| -rw-r--r-- | Src/Zle/zleparameter.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Src/Zle/zleparameter.c b/Src/Zle/zleparameter.c index 1b84fdff7..ab988d6df 100644 --- a/Src/Zle/zleparameter.c +++ b/Src/Zle/zleparameter.c @@ -56,7 +56,7 @@ widgetstr(Widget w) /**/ static HashNode -getpmwidgets(UNUSED(HashTable ht), char *name) +getpmwidgets(UNUSED(HashTable ht), const char *name) { Param pm = NULL; Thingy th; @@ -129,16 +129,16 @@ static const struct gsu_array keymaps_gsu = { keymapsgetfn, arrsetfn, stdunsetfn }; static struct paramdef partab[] = { - SPECIALPMDEF("widgets", PM_READONLY, - &zlestdhash_gsu, getpmwidgets, scanpmwidgets), SPECIALPMDEF("keymaps", PM_ARRAY|PM_READONLY, &keymaps_gsu, NULL, NULL), + SPECIALPMDEF("widgets", PM_READONLY, + &zlestdhash_gsu, getpmwidgets, scanpmwidgets) }; static struct features module_features = { NULL, 0, NULL, 0, - partab, sizeof(partab)/sizeof(*partab), NULL, 0, + partab, sizeof(partab)/sizeof(*partab), 0 }; @@ -153,7 +153,7 @@ setup_(UNUSED(Module m)) int features_(Module m, char ***features) { - *features = featuresarray(m->nam, &module_features); + *features = featuresarray(m, &module_features); return 0; } @@ -161,7 +161,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); } /**/ @@ -175,7 +175,7 @@ boot_(UNUSED(Module m)) int cleanup_(Module m) { - return setfeatureenables(m->nam, &module_features, NULL); + return setfeatureenables(m, &module_features, NULL); } /**/ |
