-/* $OpenBSD: del_curterm.c,v 1.1.1.1 1996/05/31 05:40:02 tholo Exp $ */
+/* $OpenBSD: del_curterm.c,v 1.2 1996/08/31 02:40:30 tholo Exp $ */
/*
* Copyright (c) 1996 SigmaSoft, Th. Lockert <tholo@sigmasoft.com>
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: del_curterm.c,v 1.1.1.1 1996/05/31 05:40:02 tholo Exp $";
+static char rcsid[] = "$OpenBSD: del_curterm.c,v 1.2 1996/08/31 02:40:30 tholo Exp $";
#endif
#include <stdlib.h>
#include "term.h"
+extern TERMINAL _ti_empty;
+
/*
* Free storage associated with the terminal description
* passed in. Note that it is legal to free cur_term in
{
int i;
+ if (term == &_ti_empty)
+ return OK;
for (i = 0; i < _tStrCnt; i++)
if (term->strs[i] != NULL)
free(term->strs[i]);
* one, set cur_term to NULL
*/
if (term == cur_term)
- cur_term = NULL;
+ cur_term = &_ti_empty;
return OK;
}
-/* $OpenBSD: globals.c,v 1.1 1996/08/31 02:36:59 tholo Exp $ */
+/* $OpenBSD: globals.c,v 1.2 1996/08/31 02:40:30 tholo Exp $ */
/*
* Copyright (c) 1996 SigmaSoft, Th. Lockert <tholo@sigmasoft.com>
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: globals.c,v 1.1 1996/08/31 02:36:59 tholo Exp $";
+static char rcsid[] = "$OpenBSD: globals.c,v 1.2 1996/08/31 02:40:30 tholo Exp $";
#endif
#include "term.h"
-static TERMINAL empty = {
+TERMINAL _ti_empty = {
-1, 9600, {}, {}, "dumb", {}, { 80, 0, 24 }, {}
};
-TERMINAL *cur_term = ∅
+TERMINAL *cur_term = &_ti_empty;