Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  8 Nov 1995 16:42:39 +0300 (MSK)
From:      =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (aka Andrey A. Chernov, Black Mage) <ache@astral.msk.su>
To:        "Jordan K. Hubbard" <jkh@time.cdrom.com>
Cc:        FreeBSD hackers <freebsd-hackers@freebsd.org>, Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
Subject:   Re: Ack! Help, Andrey! I'm having troubles in libdialog!
Message-ID:  <rZFFBemqP9@ache.dialup.demos.ru>
In-Reply-To: <2079.815799713@time.cdrom.com>; from "Jordan K. Hubbard" at Tue, 07 Nov 1995 19:01:53 -0800
References:  <2079.815799713@time.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <2079.815799713@time.cdrom.com> Jordan K. Hubbard writes:

>> Better solution for it will be passing NULL pointer to dialog functions
>> because you not use result[] at all and make them understand NULL
>> pointer there.

>Well, while we're wishing here.. :-)

>A *far far* better solution would be to be able to add callbacks for
>each item created, then I'd never even need to parse that &%^%$*!!
>result string at all!  The original dialog/libdialog was designed for
>use from shell scripts, and not from C.  The shortcomings of this are
>obvious.

I can make checklist function understand NULL and do nothing
for 'result' arg and pass char array as yet one additional arg, i.e.
char hit[nitems]. When function returns, it will have 1 for
selected items and 0 for others. Is it what you want here?

-- 
Andrey A. Chernov        : And I rest so composedly,  /Now, in my bed,
ache@astral.msk.su       : That any beholder  /Might fancy me dead -
http://dt.demos.su/~ache : Might start at beholding me,  /Thinking me dead.
RELCOM Team,FreeBSD Team :         E.A.Poe         From "For Annie" 1849



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