On Wed, 23 Jan 2008, Alexander S.Kresin wrote:
>  Just to be clear: I don't want to infringe their interests in any way :).
>  If I include those files with my modifications in a new project - then 
> the answer is clear - as yours.
>  But I want to use parts of that code in other files.

So simply left in header file note that this is modified file
xxxxx from yyyyy with original copyright holders.

>  Just for example:
>  I need to include to my file aaa.c a function netname() from net.c, 
> modified in such a way that it can be call from a C level - with a name 
> aaa_netname(). Can I do this, or I must include the original net.c ?

Probably you will duplicate API which we will have in Harbour.
The C level interface to INET socket is a must. Sorry but I haven't
time to create it yet and also make some cleanup in current INET
code. Maybe it will be better to discuss it here and change hbinet.c
also adding some missing functions like wrapper to select().
Please remember that in the future we will add some other extensions
which probably will be interesting for you, f.e. online ZLIB compression.
Now it works probably only in *nixes and it's enough to make:
    CompressedSocket = HB_GZDOPEN( HB_INETFD( Socket ), "w+" ) )
on both side of connection and use CompressedSocket with HB_GZREAD()/
HB_GZWRITE()/HB_GZFLUSH() instead of HB_INET*() functions to send/receive
compressed data.
If you will duplicate HBINET cod in other project then such extension
will not work for you so I strongly suggest to invest time in updating
Harbour API. If you present what you exactly need then I can help in
this job.

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

Reply via email to