From bug-octave-request at bevo dot che dot wisc dot edu Wed Jun 23 23:28:58 1999 Subject: tiny patch for tputs usage in sysdep.cc From: Mumit Khan To: bug-octave at bevo dot che dot wisc dot edu Date: Wed, 23 Jun 1999 23:28:58 -0500 (CDT) A small patch for upcoming gcc-2.95, which is not quite so permissive. The problem is that tputs prototype is not visible in sysdep.cc. One way to handle the tputs issue is to include the correct header by using the ac_cv_lib_*_tputs variables (just using HAVE_TERMCAP_H loses on systems with ncurses/term.h, but no termcap), but that's simply too complicated. So, I'm just adding the prototype directly. Wed Jun 23 21:28:56 1999 Mumit Khan * sysdep.cc (tputs): Prototype. (clc): Properly cast function pointer. --- sysdep.cc.~1 Wed Jun 23 21:28:24 1999 +++ sysdep.cc Wed Jun 23 21:34:58 1999 at @ -79,6 +79,7 @@ LOSE! LOSE! extern char *term_clrpag; extern "C" void _rl_output_character_function (); +extern "C" int tputs(const char, int, int (*)(int)); #include "mach-info.h" at @ -393,7 +394,7 @@ DEFUN (clc, , , #if ! defined (_GO32_) if (term_clrpag) - tputs (term_clrpag, 1, _rl_output_character_function); + tputs (term_clrpag, 1, (int (*)(int)) _rl_output_character_function); else crlf (); #else Regards, Mumit --------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. To ensure that development continues, see www.che.wisc.edu/octave/giftform.html Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html ---------------------------------------------------------------------