mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 02:50:33 +00:00
engine: common: minor fixes to ipv6text library
This commit is contained in:
parent
b072b627a2
commit
1a5a76a201
@ -136,7 +136,7 @@ static inline int ParseIPv6Addr_DecimalDigitVal( char c )
|
|||||||
if ( c >= '0' && c <= '9' ) return c - '0';
|
if ( c >= '0' && c <= '9' ) return c - '0';
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
bool ParseIPv6Addr_IsSpace( char c )
|
static bool ParseIPv6Addr_IsSpace( char c )
|
||||||
{
|
{
|
||||||
// Newlines don't count, intentionally
|
// Newlines don't count, intentionally
|
||||||
return c == ' ' || c == '\t';
|
return c == ' ' || c == '\t';
|
||||||
|
@ -6,14 +6,14 @@
|
|||||||
|
|
||||||
/// Max length of an IPv6 string, with scope, WITHOUT port number, including \0':
|
/// Max length of an IPv6 string, with scope, WITHOUT port number, including \0':
|
||||||
/// 0123:4567:89ab:cdef:0123:4567:89ab:cdef%4294967295
|
/// 0123:4567:89ab:cdef:0123:4567:89ab:cdef%4294967295
|
||||||
#define k_ncchMaxIPV6AddrStringWithoutPort 51;
|
#define k_ncchMaxIPV6AddrStringWithoutPort 51
|
||||||
|
|
||||||
/// Max number of bytes output by IPv6AddrToString, including '\0':
|
/// Max number of bytes output by IPv6AddrToString, including '\0':
|
||||||
/// [0123:4567:89ab:cdef:0123:4567:89ab:cdef%4294967295]:12345
|
/// [0123:4567:89ab:cdef:0123:4567:89ab:cdef%4294967295]:12345
|
||||||
/// There are other strings that are acceptable to ParseIPv6Addr
|
/// There are other strings that are acceptable to ParseIPv6Addr
|
||||||
/// that are longer than this, but this is the longest canonical
|
/// that are longer than this, but this is the longest canonical
|
||||||
/// string.
|
/// string.
|
||||||
#define k_ncchMaxIPV6AddrStringWithPort 59;
|
#define k_ncchMaxIPV6AddrStringWithPort 59
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user