diff options
Diffstat (limited to 'Src/Zle/compctl.c')
-rw-r--r-- | Src/Zle/compctl.c | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c index 7104bfc6e..4d192fef8 100644 --- a/Src/Zle/compctl.c +++ b/Src/Zle/compctl.c @@ -1638,26 +1638,41 @@ static struct builtin bintab[] = { /**/ int -boot_compctl(Module m) +setup_compctl(Module m) { - if(!addbuiltins(m->nam, bintab, sizeof(bintab)/sizeof(*bintab))) - return 1; compctltab->printnode = printcompctlp; printcompctlptr = printcompctl; compctl_widgetptr = compctl_widget; return 0; } +/**/ +int +boot_compctl(Module m) +{ + if(!addbuiltins(m->nam, bintab, sizeof(bintab)/sizeof(*bintab))) + return 1; + return 0; +} + #ifdef MODULE /**/ int cleanup_compctl(Module m) { - compctltab->printnode = NULL; deletebuiltins(m->nam, bintab, sizeof(bintab)/sizeof(*bintab)); + return 0; +} + +/**/ +int +finish_compctl(Module m) +{ + compctltab->printnode = NULL; printcompctlptr = NULL; compctl_widgetptr = NULL; return 0; } + #endif |