mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-01 12:00:53 +00:00
Document non-standard functions in sys abstraction layer
This commit is contained in:
parent
e040132d92
commit
5079e4552c
@ -15,6 +15,11 @@
|
|||||||
* If you \#define them to htons() and htonl(), you should
|
* If you \#define them to htons() and htonl(), you should
|
||||||
* \#define LWIP_DONT_PROVIDE_BYTEORDER_FUNCTIONS to prevent lwIP from
|
* \#define LWIP_DONT_PROVIDE_BYTEORDER_FUNCTIONS to prevent lwIP from
|
||||||
* defining htonx/ntohx compatibility macros.
|
* defining htonx/ntohx compatibility macros.
|
||||||
|
|
||||||
|
* @defgroup sys_nonstandard Non-standard functions
|
||||||
|
* @ingroup sys_layer
|
||||||
|
* lwIP provides default implementations for non-standard functions.
|
||||||
|
* These can be mapped to OS functions to reduce code footprint if desired.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -87,7 +92,11 @@ lwip_htonl(u32_t n)
|
|||||||
#endif /* BYTE_ORDER == LITTLE_ENDIAN */
|
#endif /* BYTE_ORDER == LITTLE_ENDIAN */
|
||||||
|
|
||||||
#ifndef lwip_strnstr
|
#ifndef lwip_strnstr
|
||||||
/** Like strstr but does not need 'buffer' to be NULL-terminated */
|
/**
|
||||||
|
* @ingroup sys_nonstandard
|
||||||
|
* lwIP default implementation for strnstr() non-standard function.
|
||||||
|
* This can be \#defined to strnstr() depending on your platform port.
|
||||||
|
*/
|
||||||
char*
|
char*
|
||||||
lwip_strnstr(const char* buffer, const char* token, size_t n)
|
lwip_strnstr(const char* buffer, const char* token, size_t n)
|
||||||
{
|
{
|
||||||
@ -106,6 +115,11 @@ lwip_strnstr(const char* buffer, const char* token, size_t n)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef lwip_stricmp
|
#ifndef lwip_stricmp
|
||||||
|
/**
|
||||||
|
* @ingroup sys_nonstandard
|
||||||
|
* lwIP default implementation for stricmp() non-standard function.
|
||||||
|
* This can be \#defined to stricmp() depending on your platform port.
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
lwip_stricmp(const char* str1, const char* str2)
|
lwip_stricmp(const char* str1, const char* str2)
|
||||||
{
|
{
|
||||||
@ -136,6 +150,11 @@ lwip_stricmp(const char* str1, const char* str2)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef lwip_strnicmp
|
#ifndef lwip_strnicmp
|
||||||
|
/**
|
||||||
|
* @ingroup sys_nonstandard
|
||||||
|
* lwIP default implementation for strnicmp() non-standard function.
|
||||||
|
* This can be \#defined to strnicmp() depending on your platform port.
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
lwip_strnicmp(const char* str1, const char* str2, size_t len)
|
lwip_strnicmp(const char* str1, const char* str2, size_t len)
|
||||||
{
|
{
|
||||||
@ -166,6 +185,11 @@ lwip_strnicmp(const char* str1, const char* str2, size_t len)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef lwip_itoa
|
#ifndef lwip_itoa
|
||||||
|
/**
|
||||||
|
* @ingroup sys_nonstandard
|
||||||
|
* lwIP default implementation for itoa() non-standard function.
|
||||||
|
* This can be \#defined to itoa() or snprintf(result, bufsize, "%d", number) depending on your platform port.
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
lwip_itoa(char* result, size_t bufsize, int number)
|
lwip_itoa(char* result, size_t bufsize, int number)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user