[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help to design ui for jabber client:)
From: |
worwan |
Subject: |
Re: help to design ui for jabber client:) |
Date: |
Sun, 2 Dec 2007 12:55:40 -0800 (PST) |
well..of course i always look first into man pages..:)
The function new_form returns NULL on error. It sets errno according to the
function’s success:
thats in my man pages...its libncurses version 5.6+20071124-1
And im pretty sure that new_form returned null and right after that errno ==
-4...and that is E_SYSTEM_ERROR.
And as i said in last mail...really very curious workaround was to move code
at the beginning of initWindow function..that means before initialization of
second form.
just for fun i will upload my source code...i hope nobody will look at it
though...cos i guess its really ugly source code :). But if someone would be
curious :))...when line 117-147 was on line 184...cmd_form =
new_form(cmd_field); returned null..
http://www.nabble.com/file/p14119842/userinterface.cc userinterface.cc
Avery Pennarun-2 wrote:
>
> On 02/12/2007, Thomas Dickey <address@hidden> wrote:
>> On Sun, 2 Dec 2007, Avery Pennarun wrote:
>> > I don't think new_form() sets errno, according to the man page, so
>> > looking at its value is probably misleading.
>>
>> RETURN VALUE
>> The function new_form returns NULL on error. It sets errno
>> according
>> to the function's success:
>> ...
>> E_SYSTEM_ERROR
>> System error occurred, e.g., malloc failure.
>>
>> (why it's getting a malloc problem - I don't know)
>
> I must have an old version of the man page:
>
> The function new_form returns NULL on error.
>
> The function free_form returns one of the following:
>
> E_OK The routine succeeded.
>
> E_SYSTEM_ERROR
> System error occurred (see errno).
>
> (etc)
>
> From this, I would assume that errno should never be E_SYSTEM_ERROR,
> since it tells you to *look* at errno to find which system error it
> was. And that only free_form sets errno at all. Clearly the
> implication is different in the version you quoted.
>
> (Man page from Ubuntu libncurses5-dev version 5.5-1ubuntu3.)
>
> Have fun,
>
> Avery
>
>
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-ncurses
>
>
--
View this message in context:
http://www.nabble.com/help-to-design-ui-for-jabber-client%3A%29-tf4932424.html#a14119842
Sent from the Gnu - Ncurses mailing list archive at Nabble.com.