Configuration: support for rational numbers.

This commit is contained in:
Valentin Bartenev
2020-03-30 19:37:58 +03:00
parent 0935630cba
commit 68c6b67ffc
8 changed files with 135 additions and 170 deletions

View File

@@ -20,6 +20,10 @@ nxt_upcase(c) \
nxt_isdigit(c) \
((u_char) ((c) - '0') <= 9)
#define \
nxt_strtod(s, endptr) \
strtod((char *) s, (char **) endptr)
#define \
nxt_strlen(s) \
@@ -83,6 +87,7 @@ nxt_strncmp(s1, s2, length) \
strncmp((char *) s1, (char *) s2, length)
NXT_EXPORT u_char *nxt_cpystr(u_char *dst, const u_char *src);
NXT_EXPORT u_char *nxt_cpystrn(u_char *dst, const u_char *src, size_t length);
NXT_EXPORT nxt_int_t nxt_strcasecmp(const u_char *s1, const u_char *s2);
NXT_EXPORT nxt_int_t nxt_strncasecmp(const u_char *s1, const u_char *s2,