Vista Ultimate 32bit
svn built with mingw

Thanks, please try after:
2009-07-28 18:21 UTC+0200 Przemyslaw Czerpak (druzus/at/ priv.onet.pl)

It should work as before anyhow we should think about modifying
hb_InetRecvLine() to return "" on errors. The next problem with
this function is values stored in 2-nd parameter passed by reference.
Documentation says that it should be length of line with EOL terminator
when in fact it isn't and I do not know what I should make with it.

I think it's more natural to just pass *anything* by reference
and receive the line (or empty) back as a result.

I can change it to work line in documentation but I can also keep
current behavior and set negative values on errors. In such case we
will have to update documentation.

Can the return value be set to negative regardless of above option?

Empty line can be a valid result, so we should find a way to indicate
error anyway. Although it's enough to return error in one way (NIL +
error code is redundant):
1) storing NIL as the result + error code about the details
2) storing empty as result + error code about the details

I find option 2) more natural here.

Brgds,
Viktor

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to