lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] BSD/Linux compatibility


From: Mason
Subject: Re: [lwip-devel] BSD/Linux compatibility
Date: Mon, 02 Jul 2012 12:04:23 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20120615 Firefox/13.0.1 SeaMonkey/2.10.1

James G. Smith wrote:

> It is primarily just name-mappings, or providing types that match what
> BSD provides.
> 
> e.g. if someone wanted to use inet_ntop() then the following is a simple
> mapping to the lwIP provided routines:
> 
> #define inet_ntop(__af,__src,__dst,__size) \
>     (((__af) == AF_INET6) ? ip6addr_ntoa_r((__src),(__dst),(__size)) :
> ipaddr_ntoa_r((__src),(__dst),(__size)))

Prefixing parameter names with underscores makes baby Jesus cry.

What kind of name collision are you trying to avoid?

-- 
Regards.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]