Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Sep 1996 13:00:39 +0000 (GMT)
From:      Adam David <adam@veda.is>
To:        ache@nagual.ru (=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=)
Cc:        bde@zeta.org.au, current@FreeBSD.ORG
Subject:   Re: bin/1560:
Message-ID:  <199609011300.NAA03563@veda.is>
In-Reply-To: <199609010021.EAA04448@nagual.ru> from "[______ ______]" at "Sep 1, 96 04:21:08 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> > > >	/usr/include/termcap.h declares tputs() as type void, whereas in
> > > >	/usr/include/*curses.h it says an integer is returned. This results
> > > >	in a type conflict and programs don't compile.
> > > 
> > > Someone "cleaned up" the termcap version.  It used to return a garbage
> > > int.
> > > 
> > > Bruce
> > > 
> > 
> > Uh, this means *curses needs to be brought into sync, right?
> 
> Ncurses declare it as void too. Old curses+termlib will be removed
> in future.

really?

$ rm -r /usr/include; make hierarchy includes
$ grep --eyeball tputs /usr/include/*.h
/usr/include/curses.h:int      tputs __P((const char *, int, void (*)(int)));
/usr/include/curses.h:int      tputs __P((const char *, int, int (*)(int)));
/usr/include/ncurses.h:extern int tputs(const char *,int,int (*)(int));
/usr/include/term.h:extern int del_curterm __P((TERMINAL *)), tputs __P((const char *, int, int (*)(int)));
/usr/include/termcap.h:extern void tputs __P((const char *, int, int (*)(int)));

Adam



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609011300.NAA03563>