mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-08 12:01:21 +02:00
45066: internal: Document forklevel, locallevel, and exit_pending.
This commit is contained in:
parent
a370f24137
commit
ae7e291873
4 changed files with 17 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
||||||
2019-12-18 Daniel Shahaf <danielsh@apache.org>
|
2019-12-18 Daniel Shahaf <danielsh@apache.org>
|
||||||
|
|
||||||
|
* 45066: Src/builtin.c, Src/exec.c, Src/params.c: internal:
|
||||||
|
Document forklevel, locallevel, and exit_pending.
|
||||||
|
|
||||||
* 45065: Src/Makefile.in: Make 'make -s' print nothing when it
|
* 45065: Src/Makefile.in: Make 'make -s' print nothing when it
|
||||||
does nothing.
|
does nothing.
|
||||||
|
|
||||||
|
|
|
@ -5601,7 +5601,11 @@ bin_getopts(UNUSED(char *name), char **argv, UNUSED(Options ops), UNUSED(int fun
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Flag that we should exit the shell as soon as all functions return. */
|
/* Boolean flag that we should exit the shell as soon as all functions return.
|
||||||
|
*
|
||||||
|
* Set by the 'exit' builtin.
|
||||||
|
*/
|
||||||
|
|
||||||
/**/
|
/**/
|
||||||
mod_export int
|
mod_export int
|
||||||
exit_pending;
|
exit_pending;
|
||||||
|
|
|
@ -971,6 +971,10 @@ hashcmd(char *arg0, char **pp)
|
||||||
return cn;
|
return cn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* The value that 'locallevel' had when we forked. When we get back to this
|
||||||
|
* level, the current process (which is a subshell) will terminate.
|
||||||
|
*/
|
||||||
|
|
||||||
/**/
|
/**/
|
||||||
int
|
int
|
||||||
forklevel;
|
forklevel;
|
||||||
|
|
|
@ -44,7 +44,11 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* what level of localness we are at */
|
/* What level of localness we are at.
|
||||||
|
*
|
||||||
|
* Hand-wavingly, this is incremented at every function call and decremented
|
||||||
|
* at every function return. See startparamscope().
|
||||||
|
*/
|
||||||
|
|
||||||
/**/
|
/**/
|
||||||
mod_export int locallevel;
|
mod_export int locallevel;
|
||||||
|
|
Loading…
Reference in a new issue