bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prototype for getCDKSwindowContents conflicts with man page


From: Thomas Dickey
Subject: Re: prototype for getCDKSwindowContents conflicts with man page
Date: Sat, 19 Oct 2002 16:19:08 -0400
User-agent: Mutt/1.3.27i

On Sat, Oct 19, 2002 at 02:38:57PM -0400, address@hidden wrote:
> 
> Man page for getCDKSwindowContents:
>    char **getCDKSwindowContents (CDKSWINDOW *swindow, int *lines);
> 
> Prototype in include/swindow.h:
>    chtype **getCDKSwindowContents (CDKSWINDOW *swindow, int *size);
> 
> Returning char ** is more sensible, since setCDKSwindowContents takes a
> char ** as the contents argument, but changing the return value could
> break existing code.  Personally I'm just going to code as if the man page 
> matched the prototype.

yes (beyond making some changes to eliminate fixed-size arrays, I've chosen
to add functions rather than change the interfaces).

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]