That still feels like it would be too much code to duplicate.

My 2 cents

Christian

On 01/25/14 08:55, LRN wrote:
> On 25.01.2014 11:12, Christian Grothoff wrote:
>> On 01/25/14 00:11, LRN wrote:
>>> Grothoff, it's your call. I can graft the required pieces of
>>> plibc into MHD and remove the dependency.
> 
>> How big would the graft / code duplication be?
> 
> 
> These are the functions that libmicrohttpd imports from plibc:
> 
> _SetErrnoFromWinError - utility
> _win_accept - wrapper
> _win_bind - wrapper
> _win_close - dispatcher/wrapper
> _win_listen - wrapper
> _win_mmap - implementation
> _win_munmap - implementation
> _win_recv - wrapper
> _win_select - implementation (reducible)
> _win_send - wrapper
> _win_setsockopt - wrapper
> _win_shutdown - wrapper
> _win_socket - wrapper
> _win_socketpair - implementation
> _win_strerror - implementation
> _win_tdelete - implementation (unneded)
> _win_tfind - implementation (unneded)
> _win_tsearch - implementation (unneded)
> _win_write - wrapper
> plibc_init - utility
> plibc_shutdown - utility
> 
> "wrapper" means that it calls some other function, although it may add
> some error conversion from Windows errors to errno.
> 
> "implementation" means actual code and/or more than one lowlevel
> function call.
> 
> "utility" is there to support plibc itself
> 
> 


Reply via email to