arcweb_url / arcweb_urlw problem
Tony van der Hoff
tony at mk-net.demon.co.uk
Tue Nov 19 10:45:07 GMT 2002
On 16 Nov 2002, in message <25605d964b.tom at compton.compton.nu>,
Tom Hughes <tom at compton.nu> wrote:
> The 32 bit file handle changes have broken the Arcweb module.
>
[snip]
Ouch!
As I see it, there are two solutions to this problem:
1. Abandon the pretense that there are anything other than wide file handles
in the arcweb module; there never are, and never will be. The idea was in any
case only introduced for uniformity with the rest of OSLib. We can then
dispense with arcweb_urlw and the macro translation from arcweb_url. It's the
same thing anyway. This simplifies the world greatly :-)
2. We keep the concept of uniformity, and introduce structures like
arcweb_message_fetch_requestw, which takes a arcweb_urlw before translation,
and then add a conditional translation in arcweb32.h from
arcweb_message_fetch_requestw to arcweb_message_fetch_request, thus hiding
all the messiness.
(1) makes things nice and simple, but breaks compatibility, although I can't
imagine anyone has ever used arcweb_urlw. (2), OTOH, preserves compatibility,
but makes things even more complex, and increases the header sizes slightly.
On balance, I guess it's best to play safe and go for (2). What do you think?
I'll fix this on the next update.
Cheers,
--
Tony van der Hoff | MailTo:tony at mk-net.demon.co.uk
| MailTo:avanderhoff at iee.org
Buckinghamshire, England | http:www.mk-net.demon.co.uk
More information about the oslib-team
mailing list