mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-23 13:41:12 +01:00
Rearrange context saving.
Variables are now associated with the module that declares them, being initialised and saved/restored there. However, as many variables are used for communication between modules, many of them are set in multiple places, so the assignment is ambiguous.
This commit is contained in:
parent
6291d38848
commit
cfd91eac07
15 changed files with 446 additions and 295 deletions
|
|
@ -241,7 +241,7 @@ selectargument(UNUSED(char **args))
|
|||
|
||||
addedx = 0;
|
||||
noerrs = 1;
|
||||
lexsave();
|
||||
zcontext_save();
|
||||
lexflags = LEXFLAGS_ACTIVE;
|
||||
linein = zlegetline(&ll, &cs);
|
||||
zlemetall = ll;
|
||||
|
|
@ -277,7 +277,7 @@ selectargument(UNUSED(char **args))
|
|||
inpop();
|
||||
errflag &= ~ERRFLAG_ERROR;
|
||||
noerrs = ne;
|
||||
lexrestore();
|
||||
zcontext_restore();
|
||||
zlemetacs = ocs;
|
||||
wb = owb;
|
||||
we = owe;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue