mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 21:44:11 +01:00
14125: remove static incleanup flag because it is unused
This commit is contained in:
parent
6dc04f1329
commit
ee404f2cff
@ -1,5 +1,8 @@
|
|||||||
2001-04-26 Clint Adams <clint@zsh.org>
|
2001-04-26 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
|
* 14125: Src/Modules/termcap.c, Src/Modules/terminfo.c:
|
||||||
|
remove static incleanup flag since it is not used.
|
||||||
|
|
||||||
* 14123: acconfig.h, configure.in, Src/Modules/termcap.c:
|
* 14123: acconfig.h, configure.in, Src/Modules/termcap.c:
|
||||||
don't include curses.h in termcap.c if term.h doesn't need it.
|
don't include curses.h in termcap.c if term.h doesn't need it.
|
||||||
|
|
||||||
|
@ -147,10 +147,6 @@ static struct builtin bintab[] = {
|
|||||||
BUILTIN("echotc", 0, bin_echotc, 1, -1, 0, NULL, NULL),
|
BUILTIN("echotc", 0, bin_echotc, 1, -1, 0, NULL, NULL),
|
||||||
};
|
};
|
||||||
|
|
||||||
/* This says if we are cleaning up when the module is unloaded. */
|
|
||||||
|
|
||||||
static int incleanup;
|
|
||||||
|
|
||||||
/**/
|
/**/
|
||||||
#ifdef HAVE_TGETENT
|
#ifdef HAVE_TGETENT
|
||||||
|
|
||||||
@ -363,8 +359,6 @@ scantermcap(HashTable ht, ScanFunc func, int flags)
|
|||||||
int
|
int
|
||||||
setup_(Module m)
|
setup_(Module m)
|
||||||
{
|
{
|
||||||
incleanup = 0;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -391,11 +385,7 @@ cleanup_(Module m)
|
|||||||
{
|
{
|
||||||
#ifdef HAVE_TGETENT
|
#ifdef HAVE_TGETENT
|
||||||
Param pm;
|
Param pm;
|
||||||
#endif
|
|
||||||
|
|
||||||
incleanup = 1;
|
|
||||||
|
|
||||||
#ifdef HAVE_TGETENT
|
|
||||||
if ((pm = (Param) paramtab->getnode(paramtab, termcap_nam)) &&
|
if ((pm = (Param) paramtab->getnode(paramtab, termcap_nam)) &&
|
||||||
pm == termcap_pm) {
|
pm == termcap_pm) {
|
||||||
pm->flags &= ~PM_READONLY;
|
pm->flags &= ~PM_READONLY;
|
||||||
|
@ -109,10 +109,6 @@ static struct builtin bintab[] = {
|
|||||||
BUILTIN("echoti", 0, bin_echoti, 1, -1, 0, NULL, NULL),
|
BUILTIN("echoti", 0, bin_echoti, 1, -1, 0, NULL, NULL),
|
||||||
};
|
};
|
||||||
|
|
||||||
/* This says if we are cleaning up when the module is unloaded. */
|
|
||||||
|
|
||||||
static int incleanup;
|
|
||||||
|
|
||||||
/**/
|
/**/
|
||||||
#ifdef HAVE_TIGETSTR
|
#ifdef HAVE_TIGETSTR
|
||||||
|
|
||||||
@ -337,8 +333,6 @@ scanterminfo(HashTable ht, ScanFunc func, int flags)
|
|||||||
int
|
int
|
||||||
setup_(Module m)
|
setup_(Module m)
|
||||||
{
|
{
|
||||||
incleanup = 0;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -365,11 +359,7 @@ cleanup_(Module m)
|
|||||||
{
|
{
|
||||||
#ifdef HAVE_TIGETSTR
|
#ifdef HAVE_TIGETSTR
|
||||||
Param pm;
|
Param pm;
|
||||||
#endif
|
|
||||||
|
|
||||||
incleanup = 1;
|
|
||||||
|
|
||||||
#ifdef HAVE_TIGETSTR
|
|
||||||
if ((pm = (Param) paramtab->getnode(paramtab, terminfo_nam)) &&
|
if ((pm = (Param) paramtab->getnode(paramtab, terminfo_nam)) &&
|
||||||
pm == terminfo_pm) {
|
pm == terminfo_pm) {
|
||||||
pm->flags &= ~PM_READONLY;
|
pm->flags &= ~PM_READONLY;
|
||||||
|
Loading…
Reference in New Issue
Block a user