#include <stddef.h>
#include <assert.h>
Go to the source code of this file.
Defines | |
#define | NANOURI_DECLARE static |
#define | NU_INLINE __inline__ |
#define | CHECK_EOF() |
#define | EXPECT(ch) |
Functions | |
NANOURI_DECLARE NU_INLINE int | nu_isuric (unsigned char c) |
NANOURI_DECLARE NU_INLINE char | nu_hex_char (unsigned int n) |
NANOURI_DECLARE int | nu_parse_uri (const char *_buf, size_t len, const char **scheme, size_t *scheme_len, const char **host, size_t *host_len, int *port, const char **path_query, int *path_query_len) |
#define CHECK_EOF | ( | ) |
Value:
if (buf == buf_end) { \ return -2; \ }
#define EXPECT | ( | ch | ) |
Value:
CHECK_EOF(); \ if (*buf++ != ch) { \ return -1; \ }
#define NANOURI_DECLARE static |
#define NU_INLINE __inline__ |
NANOURI_DECLARE NU_INLINE char nu_hex_char | ( | unsigned int | n | ) |
NANOURI_DECLARE NU_INLINE int nu_isuric | ( | unsigned char | c | ) |
NANOURI_DECLARE int nu_parse_uri | ( | const char * | _buf, | |
size_t | len, | |||
const char ** | scheme, | |||
size_t * | scheme_len, | |||
const char ** | host, | |||
size_t * | host_len, | |||
int * | port, | |||
const char ** | path_query, | |||
int * | path_query_len | |||
) |