From 2a5a899a55fd2bce10efd01c75a4bec5285aa46c Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 15 Apr 1999 18:10:10 +0000 Subject: zsh-3.1.5-pws-4 --- Src/Zle/compctl.c | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'Src/Zle/compctl.c') 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 -- cgit 1.4.1