aboutsummaryrefslogtreecommitdiff
path: root/ncurses/tinfo/lib_termname.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2014-02-28 19:12:44 +0000
committerXin LI <delphij@FreeBSD.org>2014-02-28 19:12:44 +0000
commit4b819fa20a8d007a10f2d3e8d6a5dedf7f18fc9a (patch)
treeb8f6e12b479a78216f3bffb8e1258d54087268de /ncurses/tinfo/lib_termname.c
parente07762606a5bf651a501cb095c98cba90e4a8fe2 (diff)
downloadsrc-4b819fa20a8d007a10f2d3e8d6a5dedf7f18fc9a.tar.gz
src-4b819fa20a8d007a10f2d3e8d6a5dedf7f18fc9a.zip
Undo two previous imports which was never done in preparation of doing a
new import.
Notes
Notes: svn path=/vendor/ncurses/dist/; revision=262616
Diffstat (limited to 'ncurses/tinfo/lib_termname.c')
-rw-r--r--ncurses/tinfo/lib_termname.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/ncurses/tinfo/lib_termname.c b/ncurses/tinfo/lib_termname.c
index e3f6827ee018..713d0be8c360 100644
--- a/ncurses/tinfo/lib_termname.c
+++ b/ncurses/tinfo/lib_termname.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright (c) 1998-2003,2009 Free Software Foundation, Inc. *
+ * Copyright (c) 1998-2001,2003 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
@@ -28,31 +28,17 @@
#include <curses.priv.h>
-MODULE_ID("$Id: lib_termname.c,v 1.12 2009/10/24 21:56:58 tom Exp $")
+MODULE_ID("$Id: lib_termname.c,v 1.8 2003/12/27 18:23:01 tom Exp $")
NCURSES_EXPORT(char *)
-NCURSES_SP_NAME(termname) (NCURSES_SP_DCL0)
+termname(void)
{
char *name = 0;
- T((T_CALLED("termname(%p)"), (void *) SP_PARM));
+ T((T_CALLED("termname()")));
-#if NCURSES_SP_FUNCS
- if (TerminalOf(SP_PARM) != 0) {
- name = TerminalOf(SP_PARM)->_termname;
- }
-#else
if (cur_term != 0)
name = cur_term->_termname;
-#endif
returnPtr(name);
}
-
-#if NCURSES_SP_FUNCS
-NCURSES_EXPORT(char *)
-termname(void)
-{
- return NCURSES_SP_NAME(termname) (CURRENT_SCREEN);
-}
-#endif