about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-11-24 16:20:58 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-11-24 16:20:58 +0000
commitf8b0dee88051065d4667fe41dd1bc81905c2b07c (patch)
treed305a5589d775d1fa38f7486a2b58bfc567d9379 /Src/Zle
parentf853592fa0e6dc1246c8c23932bbd3265e537728 (diff)
downloadzsh-f8b0dee88051065d4667fe41dd1bc81905c2b07c.tar.gz
zsh-f8b0dee88051065d4667fe41dd1bc81905c2b07c.tar.xz
zsh-f8b0dee88051065d4667fe41dd1bc81905c2b07c.zip
zsh-workers/8770
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/compctl.c4
-rw-r--r--Src/Zle/complete.c7
-rw-r--r--Src/Zle/complist.c4
-rw-r--r--Src/Zle/computil.c4
-rw-r--r--Src/Zle/deltochar.c4
-rw-r--r--Src/Zle/zle_hist.c6
-rw-r--r--Src/Zle/zle_keymap.c4
-rw-r--r--Src/Zle/zle_main.c4
-rw-r--r--Src/Zle/zle_thingy.c12
-rw-r--r--Src/Zle/zleparameter.c4
10 files changed, 2 insertions, 51 deletions
diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c
index cab0f55a4..cb8f32a3a 100644
--- a/Src/Zle/compctl.c
+++ b/Src/Zle/compctl.c
@@ -3764,8 +3764,6 @@ boot_compctl(Module m)
     return (addbuiltins(m->nam, bintab, sizeof(bintab)/sizeof(*bintab)) != 1);
 }
 
-#ifdef MODULE
-
 /**/
 int
 cleanup_compctl(Module m)
@@ -3789,5 +3787,3 @@ finish_compctl(Module m)
     compctlreadptr = fallback_compctlread;
     return 0;
 }
-
-#endif
diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c
index bf558f352..f52ac98ef 100644
--- a/Src/Zle/complete.c
+++ b/Src/Zle/complete.c
@@ -1389,8 +1389,6 @@ boot_complete(Module m)
     return 0;
 }
 
-#ifdef MODULE
-
 /**/
 int
 cleanup_complete(Module m)
@@ -1414,7 +1412,8 @@ cleanup_complete(Module m)
 int
 finish_complete(Module m)
 {
-    freearray(compwords);
+    if (compwords)
+	freearray(compwords);
     zsfree(compprefix);
     zsfree(compsuffix);
     zsfree(compiprefix);
@@ -1446,5 +1445,3 @@ finish_complete(Module m)
 
     return 0;
 }
-
-#endif
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index 5f40ffb9a..612191913 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -935,8 +935,6 @@ boot_complist(Module m)
     return 0;
 }
 
-#ifdef MODULE
-
 /**/
 int
 cleanup_complist(Module m)
@@ -957,5 +955,3 @@ finish_complist(Module m)
 {
     return 0;
 }
-
-#endif
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
index fd39e255b..f39a65b48 100644
--- a/Src/Zle/computil.c
+++ b/Src/Zle/computil.c
@@ -2837,8 +2837,6 @@ boot_computil(Module m)
     return !addbuiltins(m->nam, bintab, sizeof(bintab)/sizeof(*bintab));
 }
 
-#ifdef MODULE
-
 /**/
 int
 cleanup_computil(Module m)
@@ -2865,5 +2863,3 @@ finish_computil(Module m)
 
     return 0;
 }
-
-#endif
diff --git a/Src/Zle/deltochar.c b/Src/Zle/deltochar.c
index 566a578f1..e3f9def0c 100644
--- a/Src/Zle/deltochar.c
+++ b/Src/Zle/deltochar.c
@@ -98,8 +98,6 @@ boot_deltochar(Module m)
     return -1;
 }
 
-#ifdef MODULE
-
 /**/
 int
 cleanup_deltochar(Module m)
@@ -115,5 +113,3 @@ finish_deltochar(Module m)
 {
     return 0;
 }
-
-#endif
diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c
index f85fa00a6..d6dc2a794 100644
--- a/Src/Zle/zle_hist.c
+++ b/Src/Zle/zle_hist.c
@@ -612,9 +612,6 @@ static struct isrch_spot {
 static int max_spot = 0;
 
 /**/
-#ifdef MODULE
-
-/**/
 void
 free_isrch_spots(void)
 {
@@ -622,9 +619,6 @@ free_isrch_spots(void)
 }
 
 /**/
-#endif /* MODULE */
-
-/**/
 static void
 set_isrch_spot(int num, int hl, int pos, int cs, int len, int dir, int nomatch)
 {
diff --git a/Src/Zle/zle_keymap.c b/Src/Zle/zle_keymap.c
index 37c32d581..ccfbd4043 100644
--- a/Src/Zle/zle_keymap.c
+++ b/Src/Zle/zle_keymap.c
@@ -1000,8 +1000,6 @@ init_keymaps(void)
     lastnamed = refthingy(t_undefinedkey);
 }
 
-#ifdef MODULE
-
 /* cleanup entry point (for unloading the zle module) */
 
 /**/
@@ -1013,8 +1011,6 @@ cleanup_keymaps(void)
     zfree(keybuf, keybufsz);
 }
 
-#endif /* MODULE */
-
 /* Create the default keymaps.  For efficiency reasons, this function   *
  * assigns directly to the km->first array.  It knows that there are no *
  * prefix bindings in the way, and that it is using a simple keymap.    */
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 42b4e21e4..4f5729818 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -1043,8 +1043,6 @@ boot_zle(Module m)
     return 0;
 }
 
-#ifdef MODULE
-
 /**/
 int
 cleanup_zle(Module m)
@@ -1093,5 +1091,3 @@ finish_zle(Module m)
 
     return 0;
 }
-
-#endif /* MODULE */
diff --git a/Src/Zle/zle_thingy.c b/Src/Zle/zle_thingy.c
index a4191a9a4..1e0d483e2 100644
--- a/Src/Zle/zle_thingy.c
+++ b/Src/Zle/zle_thingy.c
@@ -286,8 +286,6 @@ addzlefunction(char *name, ZleIntFunc ifunc, int flags)
     return w;
 }
 
-#ifdef DYNAMIC
-
 /* Delete an internal widget provided by a module.  Don't try to delete *
  * a widget from the fixed table -- it would be bad.  (Thanks, Egon.)   */
 
@@ -309,8 +307,6 @@ deletezlefunction(Widget w)
     }
 }
 
-#endif /* DYNAMIC */
-
 /***************/
 /* zle builtin */
 /***************/
@@ -550,18 +546,10 @@ bin_zle_complete(char *name, char **args, char *ops, char func)
     Thingy t;
     Widget w, cw;
 
-#ifdef DYNAMIC
     if (!require_module(name, "complete", 0, 0)) {
 	zerrnam(name, "can't load complete module", NULL, 0);
 	return 1;
     }
-#else
-    if (!module_linked("complete")) {
-	zerrnam(name, "complete module not available", NULL, 0);
-	return 1;
-    }
-#endif
-    
     t = rthingy((args[1][0] == '.') ? args[1] : dyncat(".", args[1]));
     cw = t->widget;
     unrefthingy(t);
diff --git a/Src/Zle/zleparameter.c b/Src/Zle/zleparameter.c
index 9103916bb..c4347de6b 100644
--- a/Src/Zle/zleparameter.c
+++ b/Src/Zle/zleparameter.c
@@ -230,8 +230,6 @@ boot_zleparameter(Module m)
     return 0;
 }
 
-#ifdef MODULE
-
 /**/
 int
 cleanup_zleparameter(Module m)
@@ -255,5 +253,3 @@ finish_zleparameter(Module m)
 {
     return 0;
 }
-
-#endif