opensubscriber
   Find in this group all groups
 
Unknown more information…

f : freebsd-hackers@freebsd.org 22 May 2012 • 12:41AM -0400

Something wrong with curs_threads(3X) ?
by Yanhui Shen

REPLY TO AUTHOR
 
REPLY TO GROUP




Hi,

In curs_threads(3X), at the beginning of the manual:

typedef   int  (*NCURSES_WINDOW_CB)(WINDOW  *,  void  *);  typedef  int
>        (*NCURSES_SCREEN_CB)(SCREEN *, void *);
>        int set_escdelay(int size);
>        int set_tabsize(int size);
>        int use_screen(SCREEN *scr, NCURSES_WINDOW_CB func, void *data);
>        int use_window(WINDOW *win, NCURSES_SCREEN_CB func, void *data);


use_screen => NCURSES_WINDOW_CB
use_window = > NCURSES_SCREEN_CB
Target is not matched, I'm really confused.
So I open /usr/include/curses.h, and find these:

extern NCURSES_EXPORT(int) use_screen (SCREEN *, NCURSES_SCREEN_CB, void *);
> extern NCURSES_EXPORT(int) use_window (WINDOW *, NCURSES_WINDOW_CB, void
> *);


Seems much proper. So is this a bug?

--
Best regards,
Yanhui Shen
_______________________________________________
freebsd-hackers@free... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@free..."

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.