From 63acd1060174cd9d3595abb3fe71174c595e8131 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 17 Jan 2000 18:25:25 +0000 Subject: zsh-workers/9332 --- Src/Zle/compcore.c | 6 +++--- Src/Zle/compctl.c | 12 ++++++------ Src/Zle/complete.c | 4 ++-- Src/Zle/zle_main.c | 6 +++--- Src/Zle/zle_misc.c | 6 +++--- 5 files changed, 17 insertions(+), 17 deletions(-) (limited to 'Src/Zle') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index 4d7ee469b..670dac1da 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -491,11 +491,11 @@ after_complete(Hookdef dummy, Compldat dat) static void callcompfunc(char *s, char *fn) { - List list; + Eprog prog; int lv = lastval; char buf[20]; - if ((list = getshfunc(fn)) != &dummy_list) { + if ((prog = getshfunc(fn)) != &dummy_eprog) { char **p, *tmp; int aadd = 0, usea = 1, icf = incompfunc, osc = sfcontext; unsigned int rset, kset; @@ -724,7 +724,7 @@ callcompfunc(char *s, char *fn) while (*p) addlinknode(largs, dupstring(*p++)); } - doshfunc(fn, list, largs, 0, 0); + doshfunc(fn, prog, largs, 0, 0); cfret = lastval; lastval = olv; } OLDHEAPS; diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c index 69db9e04a..77a76c156 100644 --- a/Src/Zle/compctl.c +++ b/Src/Zle/compctl.c @@ -3431,12 +3431,12 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd) } if (cc->func) { /* This handles the compctl -K flag. */ - List list; + Eprog prog; char **r; int lv = lastval; /* Get the function. */ - if ((list = getshfunc(cc->func)) != &dummy_list) { + if ((prog = getshfunc(cc->func)) != &dummy_eprog) { /* We have it, so build a argument list. */ LinkList args = newlinklist(); int osc = sfcontext; @@ -3460,7 +3460,7 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd) incompctlfunc = 1; sfcontext = SFC_COMPLETE; /* Call the function. */ - doshfunc(cc->func, list, args, 0, 1); + doshfunc(cc->func, prog, args, 0, 1); sfcontext = osc; incompctlfunc = 0; /* And get the result from the reply parameter. */ @@ -3601,12 +3601,12 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd) /* generate the user-defined display list: if anything fails, * * we silently allow the normal completion list to be used. */ char **yaptr = NULL, *uv = NULL; - List list; + Eprog prog; if (cc->ylist[0] == '$' || cc->ylist[0] == '(') { /* from variable */ uv = cc->ylist + (cc->ylist[0] == '$'); - } else if ((list = getshfunc(cc->ylist)) != &dummy_list) { + } else if ((prog = getshfunc(cc->ylist)) != &dummy_eprog) { /* from function: pass completions as arg list */ LinkList args = newlinklist(); LinkNode ln; @@ -3630,7 +3630,7 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd) if (incompfunc != 1) incompctlfunc = 1; sfcontext = SFC_COMPLETE; - doshfunc(cc->ylist, list, args, 0, 1); + doshfunc(cc->ylist, prog, args, 0, 1); sfcontext = osc; incompctlfunc = 0; uv = "reply"; diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c index d4c9f76c8..75bda321e 100644 --- a/Src/Zle/complete.c +++ b/Src/Zle/complete.c @@ -1177,7 +1177,7 @@ comp_setunset(int rset, int runset, int kset, int kunset) /**/ static int -comp_wrapper(List list, FuncWrap w, char *name) +comp_wrapper(Eprog prog, FuncWrap w, char *name) { if (incompfunc != 1) return 1; @@ -1214,7 +1214,7 @@ comp_wrapper(List list, FuncWrap w, char *name) owords = arrdup(compwords); } LASTALLOC; - runshfunc(list, w, name); + runshfunc(prog, w, name); if (comprestore && !strcmp(comprestore, "auto")) { compcurrent = ocur; diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c index 722612421..abf870655 100644 --- a/Src/Zle/zle_main.c +++ b/Src/Zle/zle_main.c @@ -649,9 +649,9 @@ execzlefunc(Thingy func, char **args) lastcmd = wflags; r = 1; } else { - List l = getshfunc(w->u.fnnam); + Eprog prog = getshfunc(w->u.fnnam); - if(l == &dummy_list) { + if(prog == &dummy_eprog) { /* the shell function doesn't exist */ char *nm = niceztrdup(w->u.fnnam); char *msg = tricat("No such shell function `", nm, "'"); @@ -673,7 +673,7 @@ execzlefunc(Thingy func, char **args) startparamscope(); makezleparams(0); sfcontext = SFC_WIDGET; - doshfunc(w->u.fnnam, l, largs, 0, 0); + doshfunc(w->u.fnnam, prog, largs, 0, 0); ret = lastval; lastval = olv; sfcontext = osc; diff --git a/Src/Zle/zle_misc.c b/Src/Zle/zle_misc.c index eec325192..4d0669fb6 100644 --- a/Src/Zle/zle_misc.c +++ b/Src/Zle/zle_misc.c @@ -925,9 +925,9 @@ mod_export void iremovesuffix(int c, int keep) { if (suffixfunc) { - List l = getshfunc(suffixfunc); + Eprog prog = getshfunc(suffixfunc); - if (l != &dummy_list) { + if (prog != &dummy_eprog) { LinkList args = newlinklist(); char buf[20]; int osc = sfcontext; @@ -939,7 +939,7 @@ iremovesuffix(int c, int keep) startparamscope(); makezleparams(0); sfcontext = SFC_COMPLETE; - doshfunc(suffixfunc, l, args, 0, 1); + doshfunc(suffixfunc, prog, args, 0, 1); sfcontext = osc; endparamscope(); } -- cgit 1.4.1