Move copyright link from initscr to newterm (initscr may be not called).

Small cleanup.
This commit is contained in:
Andrey A. Chernov 1994-10-09 23:31:13 +00:00
parent 5de177eaf6
commit 55ac4c2d5d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3479
3 changed files with 3 additions and 5 deletions

View File

@ -1,4 +1,4 @@
char _ncurses_copyright[] = "\
char _ncurses_copyright[] = "\n\
/***************************************************************************\n\
* COPYRIGHT NOTICE *\n\
****************************************************************************\n\

View File

@ -13,18 +13,14 @@
#include <stdlib.h>
#include "curses.priv.h"
extern char _ncurses_copyright[];
WINDOW *initscr()
{
char *use_it;
#ifdef TRACE
_init_trace();
if (_tracing)
_tracef("initscr() called");
#endif
use_it = _ncurses_copyright;
if (newterm(getenv("TERM"), stdout, stdin) == NULL)
return NULL;
else {

View File

@ -46,6 +46,8 @@ SCREEN * newterm(char *term, FILE *ofp, FILE *ifp)
sigaction_t act;
int errret;
int stolen, topstolen;
extern char _ncurses_copyright[];
char *use_it = _ncurses_copyright;
#ifdef TRACE
_init_trace();