Commit e803a216 authored by Martti Mela's avatar Martti Mela

for all files related: 's/static inline/su_inline/g'

darcs-hash:20070423131444-1b897-6275c45cd5d9b5275c93219c8a38f11557bc5851.gz
parent bd69e555
...@@ -106,7 +106,7 @@ char * bnf_span_token_end(char const *s) ...@@ -106,7 +106,7 @@ char * bnf_span_token_end(char const *s)
} }
/** Return length of decimal-octet */ /** Return length of decimal-octet */
static inline int span_ip4_octet(char const *host) su_inline int span_ip4_octet(char const *host)
{ {
/* /*
decimal-octet = DIGIT decimal-octet = DIGIT
...@@ -242,7 +242,7 @@ int scan_ip4_address(char **inout_host) ...@@ -242,7 +242,7 @@ int scan_ip4_address(char **inout_host)
} }
/** Return length of hex4 */ /** Return length of hex4 */
static inline int span_hex4(char const *host) su_inline int span_hex4(char const *host)
{ {
if (!IS_HEX(host[0])) if (!IS_HEX(host[0]))
return 0; return 0;
...@@ -256,7 +256,7 @@ static inline int span_hex4(char const *host) ...@@ -256,7 +256,7 @@ static inline int span_hex4(char const *host)
} }
/** Return length of valid IP6 address */ /** Return length of valid IP6 address */
static inline su_inline
int span_canonic_ip6_address(char const *host, int span_canonic_ip6_address(char const *host,
int *return_canonize, int *return_canonize,
char *hexparts[9]) char *hexparts[9])
...@@ -337,7 +337,7 @@ int span_canonic_ip6_address(char const *host, ...@@ -337,7 +337,7 @@ int span_canonic_ip6_address(char const *host,
* *
* @retval Length of canonized IP6 address. * @retval Length of canonized IP6 address.
*/ */
static inline su_inline
int canonize_ip6_address(char *host, char *hexparts[9]) int canonize_ip6_address(char *host, char *hexparts[9])
{ {
char *dst, *hex, *ip4 = NULL; char *dst, *hex, *ip4 = NULL;
...@@ -565,7 +565,7 @@ int scan_ip_address(char **inout_host) ...@@ -565,7 +565,7 @@ int scan_ip_address(char **inout_host)
} }
/** Return length of a valid domain label */ /** Return length of a valid domain label */
static inline su_inline
size_t span_domain_label(char const *label) size_t span_domain_label(char const *label)
{ {
/* domainlabel = alphanum / alphanum *( alphanum / "-" ) alphanum */ /* domainlabel = alphanum / alphanum *( alphanum / "-" ) alphanum */
...@@ -581,7 +581,7 @@ size_t span_domain_label(char const *label) ...@@ -581,7 +581,7 @@ size_t span_domain_label(char const *label)
} }
/** Scan valid domain name and count number of labels in it. */ /** Scan valid domain name and count number of labels in it. */
static inline su_inline
size_t span_domain_labels(char const *host, size_t *return_labels) size_t span_domain_labels(char const *host, size_t *return_labels)
{ {
size_t len, n, labels; size_t len, n, labels;
......
...@@ -174,7 +174,7 @@ SOFIAPUBVAR unsigned char const _bnf_table[256]; ...@@ -174,7 +174,7 @@ SOFIAPUBVAR unsigned char const _bnf_table[256];
/** Calculate span of a linear whitespace. /** Calculate span of a linear whitespace.
* LWS = [*WSP CRLF] 1*WSP * LWS = [*WSP CRLF] 1*WSP
*/ */
static inline isize_t span_lws(char const *s) su_inline isize_t span_lws(char const *s)
{ {
char const *e = s; char const *e = s;
int i = 0; int i = 0;
...@@ -187,7 +187,7 @@ static inline isize_t span_lws(char const *s) ...@@ -187,7 +187,7 @@ static inline isize_t span_lws(char const *s)
} }
/** Calculate span of a token or linear whitespace characters. */ /** Calculate span of a token or linear whitespace characters. */
static inline isize_t span_token_lws(char const *s) su_inline isize_t span_token_lws(char const *s)
{ {
char const *e = s; char const *e = s;
while (_bnf_table[(unsigned char)(*e)] & (bnf_token | bnf_lws)) while (_bnf_table[(unsigned char)(*e)] & (bnf_token | bnf_lws))
...@@ -197,7 +197,7 @@ static inline isize_t span_token_lws(char const *s) ...@@ -197,7 +197,7 @@ static inline isize_t span_token_lws(char const *s)
#if 1 #if 1
/** Calculate span of a token characters. */ /** Calculate span of a token characters. */
static inline isize_t span_token(char const *s) su_inline isize_t span_token(char const *s)
{ {
char const *e = s; char const *e = s;
while (_bnf_table[(unsigned char)(*e)] & bnf_token) while (_bnf_table[(unsigned char)(*e)] & bnf_token)
...@@ -211,7 +211,7 @@ size_t bnf_span_token(char const *s); ...@@ -211,7 +211,7 @@ size_t bnf_span_token(char const *s);
/** Calculate span of a alphabetic characters. */ /** Calculate span of a alphabetic characters. */
static inline isize_t span_alpha(char const *s) su_inline isize_t span_alpha(char const *s)
{ {
char const *e = s; char const *e = s;
while (_bnf_table[(unsigned char)(*e)] & bnf_alpha) while (_bnf_table[(unsigned char)(*e)] & bnf_alpha)
...@@ -220,7 +220,7 @@ static inline isize_t span_alpha(char const *s) ...@@ -220,7 +220,7 @@ static inline isize_t span_alpha(char const *s)
} }
/** Calculate span of a digits. */ /** Calculate span of a digits. */
static inline isize_t span_digit(char const *s) su_inline isize_t span_digit(char const *s)
{ {
char const *e = s; char const *e = s;
while (*e >= '0' && *e <= '9') while (*e >= '0' && *e <= '9')
...@@ -229,7 +229,7 @@ static inline isize_t span_digit(char const *s) ...@@ -229,7 +229,7 @@ static inline isize_t span_digit(char const *s)
} }
/** Calculate span of a hex. */ /** Calculate span of a hex. */
static inline isize_t span_hexdigit(char const *s) su_inline isize_t span_hexdigit(char const *s)
{ {
char const *e = s; char const *e = s;
while (IS_HEX(*e)) while (IS_HEX(*e))
...@@ -238,7 +238,7 @@ static inline isize_t span_hexdigit(char const *s) ...@@ -238,7 +238,7 @@ static inline isize_t span_hexdigit(char const *s)
} }
/** Calculate span of characters belonging to an RTSP token */ /** Calculate span of characters belonging to an RTSP token */
static inline isize_t span_alpha_digit_safe(char const *s) su_inline isize_t span_alpha_digit_safe(char const *s)
{ {
char const *e = s; char const *e = s;
while (_bnf_table[(unsigned char)(*e)] & (bnf_alpha | bnf_safe)) while (_bnf_table[(unsigned char)(*e)] & (bnf_alpha | bnf_safe))
...@@ -247,7 +247,7 @@ static inline isize_t span_alpha_digit_safe(char const *s) ...@@ -247,7 +247,7 @@ static inline isize_t span_alpha_digit_safe(char const *s)
} }
/** Calculate span of a characters valid in parameters. */ /** Calculate span of a characters valid in parameters. */
static inline isize_t span_param(char const *s) su_inline isize_t span_param(char const *s)
{ {
char const *e = s; char const *e = s;
while (IS_PARAM(*e)) while (IS_PARAM(*e))
...@@ -256,7 +256,7 @@ static inline isize_t span_param(char const *s) ...@@ -256,7 +256,7 @@ static inline isize_t span_param(char const *s)
} }
/** Calculate span of a SIP word. */ /** Calculate span of a SIP word. */
static inline isize_t span_word(char const *s) su_inline isize_t span_word(char const *s)
{ {
char const *e = s; char const *e = s;
while (*e && (IS_TOKEN(*e) || strchr(SIP_WORD, *e))) while (*e && (IS_TOKEN(*e) || strchr(SIP_WORD, *e)))
...@@ -265,7 +265,7 @@ static inline isize_t span_word(char const *s) ...@@ -265,7 +265,7 @@ static inline isize_t span_word(char const *s)
} }
/** Calculate span of a unreserved characters. */ /** Calculate span of a unreserved characters. */
static inline isize_t span_unreserved(char const *s) su_inline isize_t span_unreserved(char const *s)
{ {
char const *e = s; char const *e = s;
while (IS_UNRESERVED(*e)) while (IS_UNRESERVED(*e))
...@@ -274,7 +274,7 @@ static inline isize_t span_unreserved(char const *s) ...@@ -274,7 +274,7 @@ static inline isize_t span_unreserved(char const *s)
} }
/** Calculate span of a double quoted string (with escaped chars inside) */ /** Calculate span of a double quoted string (with escaped chars inside) */
static inline isize_t span_quoted(char const *s) su_inline isize_t span_quoted(char const *s)
{ {
char const *b = s; char const *b = s;
......
...@@ -1351,7 +1351,7 @@ HTTP_HEADER_CLASS_G(server, "Server", single); ...@@ -1351,7 +1351,7 @@ HTTP_HEADER_CLASS_G(server, "Server", single);
* @endcode * @endcode
*/ */
static inline su_inline
void http_te_update(http_te_t *te) void http_te_update(http_te_t *te)
{ {
te->te_q = msg_header_find_param(te->te_common, "q"); te->te_q = msg_header_find_param(te->te_common, "q");
......
...@@ -97,7 +97,7 @@ HTTP_HEADER_CLASS_LIST(proxy_connection, "Proxy-Connection", list); ...@@ -97,7 +97,7 @@ HTTP_HEADER_CLASS_LIST(proxy_connection, "Proxy-Connection", list);
* *
* @param sc pointer to a @c http_cookie_t object * @param sc pointer to a @c http_cookie_t object
*/ */
static inline su_inline
void http_cookie_update(http_cookie_t *c) void http_cookie_update(http_cookie_t *c)
{ {
size_t i; size_t i;
...@@ -299,7 +299,7 @@ HTTP_HEADER_CLASS(cookie, "Cookie", c_params, append, cookie); ...@@ -299,7 +299,7 @@ HTTP_HEADER_CLASS(cookie, "Cookie", c_params, append, cookie);
* *
* @param sc pointer to a @c http_set_cookie_t object * @param sc pointer to a @c http_set_cookie_t object
*/ */
static inline su_inline
void http_set_cookie_update(http_set_cookie_t *sc) void http_set_cookie_update(http_set_cookie_t *sc)
{ {
size_t i; size_t i;
......
...@@ -103,9 +103,9 @@ SOFIAPUBVAR tag_typedef_t httptag_http; ...@@ -103,9 +103,9 @@ SOFIAPUBVAR tag_typedef_t httptag_http;
SOFIAPUBVAR tag_typedef_t httptag_http_ref; SOFIAPUBVAR tag_typedef_t httptag_http_ref;
#if SU_HAVE_INLINE #if SU_HAVE_INLINE
static inline su_inline
tag_value_t httptag_http_v(http_t const *v) { return (tag_value_t)v; } tag_value_t httptag_http_v(http_t const *v) { return (tag_value_t)v; }
static inline su_inline
tag_value_t httptag_http_vr(http_t const **vp) { return (tag_value_t)vp; } tag_value_t httptag_http_vr(http_t const **vp) { return (tag_value_t)vp; }
#else #else
#define httptag_http_v(v) (tag_value_t)(v) #define httptag_http_v(v) (tag_value_t)(v)
...@@ -151,10 +151,10 @@ SOFIAPUBVAR tag_typedef_t httptag_header; ...@@ -151,10 +151,10 @@ SOFIAPUBVAR tag_typedef_t httptag_header;
SOFIAPUBVAR tag_typedef_t httptag_header_ref; SOFIAPUBVAR tag_typedef_t httptag_header_ref;
#if SU_HAVE_INLINE #if SU_HAVE_INLINE
static inline tag_value_t su_inline tag_value_t
httptag_header_v(http_header_t const *v) httptag_header_v(http_header_t const *v)
{ return (tag_value_t)v; } { return (tag_value_t)v; }
static inline tag_value_t su_inline tag_value_t
httptag_header_vr(http_header_t const **vp) httptag_header_vr(http_header_t const **vp)
{ return (tag_value_t)vp; } { return (tag_value_t)vp; }
#else #else
...@@ -221,10 +221,10 @@ SOFIAPUBVAR tag_typedef_t httptag_#xxxxxx#_ref; ...@@ -221,10 +221,10 @@ SOFIAPUBVAR tag_typedef_t httptag_#xxxxxx#_ref;
SOFIAPUBVAR tag_typedef_t httptag_#xxxxxx#_str_ref; SOFIAPUBVAR tag_typedef_t httptag_#xxxxxx#_str_ref;
#if SU_HAVE_INLINE #if SU_HAVE_INLINE
static inline tag_value_t su_inline tag_value_t
httptag_#xxxxxx#_v(http_#xxxxxx#_t const *v) httptag_#xxxxxx#_v(http_#xxxxxx#_t const *v)
{ return (tag_value_t)v; } { return (tag_value_t)v; }
static inline tag_value_t su_inline tag_value_t
httptag_#xxxxxx#_vr(http_#xxxxxx#_t const **vp) httptag_#xxxxxx#_vr(http_#xxxxxx#_t const **vp)
{ return (tag_value_t)vp; } { return (tag_value_t)vp; }
#else #else
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
char *strcasestr(char const *haystack, char const *needle); char *strcasestr(char const *haystack, char const *needle);
#endif #endif
static inline int has_token(char const *qstring, char const *token); su_inline int has_token(char const *qstring, char const *token);
/** /**
* Parse authentication parameters. * Parse authentication parameters.
...@@ -163,7 +163,7 @@ int auth_struct_copy(void *dst, void const *src, isize_t s_size) ...@@ -163,7 +163,7 @@ int auth_struct_copy(void *dst, void const *src, isize_t s_size)
return 0; return 0;
} }
static inline int has_token(char const *qstring, char const *token) su_inline int has_token(char const *qstring, char const *token)
{ {
size_t n = strlen(token); size_t n = strlen(token);
char const *q; char const *q;
......
...@@ -831,7 +831,7 @@ void auth_info_digest(auth_mod_t *am, ...@@ -831,7 +831,7 @@ void auth_info_digest(auth_mod_t *am,
/* ====================================================================== */ /* ====================================================================== */
/* Password database */ /* Password database */
static inline void su_inline void
auth_htable_append_local(auth_htable_t *pr, auth_passwd_t *apw); auth_htable_append_local(auth_htable_t *pr, auth_passwd_t *apw);
/** Get an passwd entry for user. */ /** Get an passwd entry for user. */
...@@ -1132,7 +1132,7 @@ int auth_readdb_internal(auth_mod_t *am, int always) ...@@ -1132,7 +1132,7 @@ int auth_readdb_internal(auth_mod_t *am, int always)
} }
/** Append to hash, remove existing user */ /** Append to hash, remove existing user */
static inline void su_inline void
auth_htable_append_local(auth_htable_t *aht, auth_passwd_t *apw) auth_htable_append_local(auth_htable_t *aht, auth_passwd_t *apw)
{ {
auth_passwd_t **slot; auth_passwd_t **slot;
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#include "iptsec_debug.h" #include "iptsec_debug.h"
static inline int has_token(char const *qstring, char const *token); su_inline int has_token(char const *qstring, char const *token);
/**Get ntlm-challenge parameters. /**Get ntlm-challenge parameters.
......
...@@ -254,10 +254,10 @@ SOFIAPUBVAR tag_typedef_t authtag_module; ...@@ -254,10 +254,10 @@ SOFIAPUBVAR tag_typedef_t authtag_module;
SOFIAPUBVAR tag_typedef_t authtag_module_ref; SOFIAPUBVAR tag_typedef_t authtag_module_ref;
#if SU_HAVE_INLINE #if SU_HAVE_INLINE
static inline tag_value_t authtag_module_v(auth_mod_t *v) { su_inline tag_value_t authtag_module_v(auth_mod_t *v) {
return (tag_value_t)v; return (tag_value_t)v;
} }
static inline tag_value_t authtag_module_vr(auth_mod_t **vp) { su_inline tag_value_t authtag_module_vr(auth_mod_t **vp) {
return (tag_value_t)vp; return (tag_value_t)vp;
} }
#else #else
......
...@@ -92,7 +92,7 @@ static char const months[12 * 4] = ...@@ -92,7 +92,7 @@ static char const months[12 * 4] =
* @return The function month_d() returns 0..11 if given first three letters * @return The function month_d() returns 0..11 if given first three letters
* of month name, or -1 if no month name matches. * of month name, or -1 if no month name matches.
*/ */
static inline su_inline
int month_d(char const *s) int month_d(char const *s)
{ {
unsigned const uc = ('a' - 'A') << 16 | ('a' - 'A') << 8 | ('a' - 'A'); unsigned const uc = ('a' - 'A') << 16 | ('a' - 'A') << 8 | ('a' - 'A');
...@@ -125,7 +125,7 @@ int month_d(char const *s) ...@@ -125,7 +125,7 @@ int month_d(char const *s)
} }
/* Parse SP 2DIGIT ":" 2DIGIT ":" 2DIGIT SP */ /* Parse SP 2DIGIT ":" 2DIGIT ":" 2DIGIT SP */
static inline su_inline
int time_d(char const **ss, int time_d(char const **ss,
unsigned long *hour, unsigned long *min, unsigned long *sec) unsigned long *hour, unsigned long *min, unsigned long *sec)
{ {
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
#include "sofia-sip/msg_header.h" #include "sofia-sip/msg_header.h"
/** Calculate size of a parameter vector */ /** Calculate size of a parameter vector */
static inline su_inline
size_t msg_params_copy_xtra(msg_param_t const pp[], size_t offset) size_t msg_params_copy_xtra(msg_param_t const pp[], size_t offset)
{ {
size_t n = msg_params_count(pp); size_t n = msg_params_count(pp);
...@@ -63,7 +63,7 @@ size_t msg_params_copy_xtra(msg_param_t const pp[], size_t offset) ...@@ -63,7 +63,7 @@ size_t msg_params_copy_xtra(msg_param_t const pp[], size_t offset)
} }
/** Copy a vector of parameters */ /** Copy a vector of parameters */
static inline su_inline
char *msg_params_copy(char *b, size_t size, char *msg_params_copy(char *b, size_t size,
msg_param_t **dst, msg_param_t **dst,
msg_param_t const src[]) msg_param_t const src[])
......
...@@ -119,29 +119,29 @@ struct msg_buffer_s { ...@@ -119,29 +119,29 @@ struct msg_buffer_s {
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
/* Header-kind predicate functions. */ /* Header-kind predicate functions. */
static inline int msg_is_single(msg_header_t const *h) su_inline int msg_is_single(msg_header_t const *h)
{ {
return h->sh_class->hc_kind == msg_kind_single; return h->sh_class->hc_kind == msg_kind_single;
} }
static inline int msg_is_prepend(msg_header_t const *h) su_inline int msg_is_prepend(msg_header_t const *h)
{ {
return h->sh_class->hc_kind == msg_kind_prepend; return h->sh_class->hc_kind == msg_kind_prepend;
} }
static inline int msg_is_append(msg_header_t const *h) su_inline int msg_is_append(msg_header_t const *h)
{ {
return return
h->sh_class->hc_kind == msg_kind_append || h->sh_class->hc_kind == msg_kind_append ||
h->sh_class->hc_kind == msg_kind_apndlist; h->sh_class->hc_kind == msg_kind_apndlist;
} }
static inline int msg_is_list(msg_header_t const *h) su_inline int msg_is_list(msg_header_t const *h)
{ {
return h->sh_class->hc_kind == msg_kind_list; return h->sh_class->hc_kind == msg_kind_list;
} }
static inline int msg_is_special(msg_header_t const *h) su_inline int msg_is_special(msg_header_t const *h)
{ {
return h->sh_class->hc_hash < 0; return h->sh_class->hc_hash < 0;
} }
......
...@@ -76,7 +76,7 @@ static void msg_insert_chain(msg_t *msg, msg_pub_t *pub, int prepend, ...@@ -76,7 +76,7 @@ static void msg_insert_chain(msg_t *msg, msg_pub_t *pub, int prepend,
static void msg_insert_here_in_chain(msg_t *msg, static void msg_insert_here_in_chain(msg_t *msg,
msg_header_t **prev, msg_header_t **prev,
msg_header_t *h); msg_header_t *h);
static inline msg_header_t *msg_chain_remove(msg_t *msg, msg_header_t *h); su_inline msg_header_t *msg_chain_remove(msg_t *msg, msg_header_t *h);
#ifndef NDEBUG #ifndef NDEBUG
static int msg_chain_loop(msg_header_t const *h); static int msg_chain_loop(msg_header_t const *h);
...@@ -122,12 +122,12 @@ void msg_set_streaming(msg_t *msg, enum msg_streaming_status what) ...@@ -122,12 +122,12 @@ void msg_set_streaming(msg_t *msg, enum msg_streaming_status what)
/** Test if header is not in the chain */ /** Test if header is not in the chain */
#define msg_header_is_removed(h) ((h)->sh_prev == NULL) #define msg_header_is_removed(h) ((h)->sh_prev == NULL)
static inline int msg_is_request(msg_header_t const *h) su_inline int msg_is_request(msg_header_t const *h)
{ {
return h->sh_class->hc_hash == msg_request_hash; return h->sh_class->hc_hash == msg_request_hash;
} }
static inline int msg_is_status(msg_header_t const *h) su_inline int msg_is_status(msg_header_t const *h)
{ {
return h->sh_class->hc_hash == msg_status_hash; return h->sh_class->hc_hash == msg_status_hash;
} }
...@@ -253,7 +253,7 @@ usize_t msg_buf_size(msg_t const *msg) ...@@ -253,7 +253,7 @@ usize_t msg_buf_size(msg_t const *msg)
return 0; return 0;
} }
static inline su_inline
void msg_buf_used(msg_t *msg, usize_t used) void msg_buf_used(msg_t *msg, usize_t used)
{ {
msg->m_size += used; msg->m_size += used;
...@@ -812,10 +812,10 @@ int msg_unref_external(msg_t *msg, msg_buffer_t *b) ...@@ -812,10 +812,10 @@ int msg_unref_external(msg_t *msg, msg_buffer_t *b)
/* ====================================================================== */ /* ====================================================================== */
/* Parsing messages */ /* Parsing messages */
static inline int extract_incomplete_chunks(msg_t *, int eos); su_inline int extract_incomplete_chunks(msg_t *, int eos);
static issize_t extract_first(msg_t *, msg_pub_t *, static issize_t extract_first(msg_t *, msg_pub_t *,
char b[], isize_t bsiz, int eos); char b[], isize_t bsiz, int eos);
static inline issize_t extract_next(msg_t *, msg_pub_t *, char *, isize_t bsiz, su_inline issize_t extract_next(msg_t *, msg_pub_t *, char *, isize_t bsiz,
int eos, int copy); int eos, int copy);
static issize_t extract_header(msg_t *, msg_pub_t*, static issize_t extract_header(msg_t *, msg_pub_t*,
char b[], isize_t bsiz, int eos, int copy); char b[], isize_t bsiz, int eos, int copy);
...@@ -823,14 +823,14 @@ static msg_header_t *header_parse(msg_t *, msg_pub_t *, msg_href_t const *, ...@@ -823,14 +823,14 @@ static msg_header_t *header_parse(msg_t *, msg_pub_t *, msg_href_t const *,
char s[], isize_t slen, int copy_buffer); char s[], isize_t slen, int copy_buffer);
static msg_header_t *error_header_parse(msg_t *msg, msg_pub_t *mo, static msg_header_t *error_header_parse(msg_t *msg, msg_pub_t *mo,
msg_href_t const *hr); msg_href_t const *hr);
static inline issize_t su_inline issize_t
extract_trailers(msg_t *msg, msg_pub_t *mo, extract_trailers(msg_t *msg, msg_pub_t *mo,
char *b, isize_t bsiz, int eos, int copy); char *b, isize_t bsiz, int eos, int copy);
/** Calculate length of line ending (0, 1 or 2). @internal */ /** Calculate length of line ending (0, 1 or 2). @internal */
#define CRLF_TEST(b) ((b)[0] == '\r' ? ((b)[1] == '\n') + 1 : (b)[0] =='\n') #define CRLF_TEST(b) ((b)[0] == '\r' ? ((b)[1] == '\n') + 1 : (b)[0] =='\n')
static inline void su_inline void
append_parsed(msg_t *msg, msg_pub_t *mo, msg_href_t const *hr, msg_header_t *h, append_parsed(msg_t *msg, msg_pub_t *mo, msg_href_t const *hr, msg_header_t *h,
int always_into_chain); int always_into_chain);
...@@ -991,7 +991,7 @@ issize_t extract_first(msg_t *msg, msg_pub_t *mo, char b[], isize_t bsiz, int eo ...@@ -991,7 +991,7 @@ issize_t extract_first(msg_t *msg, msg_pub_t *mo, char b[], isize_t bsiz, int eo
} }
/* Extract header or message body */ /* Extract header or message body */
static inline issize_t su_inline issize_t
extract_next(msg_t *msg, msg_pub_t *mo, char *b, isize_t bsiz, extract_next(msg_t *msg, msg_pub_t *mo, char *b, isize_t bsiz,
int eos, int copy) int eos, int copy)
{ {
...@@ -1302,7 +1302,7 @@ issize_t msg_extract_separator(msg_t *msg, msg_pub_t *mo, ...@@ -1302,7 +1302,7 @@ issize_t msg_extract_separator(msg_t *msg, msg_pub_t *mo,
return l; return l;
} }
static inline msg_header_t **msg_chain_tail(msg_t const *msg); su_inline msg_header_t **msg_chain_tail(msg_t const *msg);
/** Extract a message body of @a body_len bytes. /** Extract a message body of @a body_len bytes.
*/ */
...@@ -1459,7 +1459,7 @@ issize_t msg_extract_payload(msg_t *msg, msg_pub_t *mo, ...@@ -1459,7 +1459,7 @@ issize_t msg_extract_payload(msg_t *msg, msg_pub_t *mo,
/** Extract incomplete chunks. /** Extract incomplete chunks.
*/ */
static inline su_inline
int extract_incomplete_chunks(msg_t *msg, int eos) int extract_incomplete_chunks(msg_t *msg, int eos)
{ {
msg_payload_t *chunk; msg_payload_t *chunk;
...@@ -1495,7 +1495,7 @@ int extract_incomplete_chunks(msg_t *msg, int eos) ...@@ -1495,7 +1495,7 @@ int extract_incomplete_chunks(msg_t *msg, int eos)
} }
/* Extract trailers */ /* Extract trailers */
static inline issize_t su_inline issize_t
extract_trailers(msg_t *msg, msg_pub_t *mo, extract_trailers(msg_t *msg, msg_pub_t *mo,
char *b, isize_t bsiz, int eos, int copy) char *b, isize_t bsiz, int eos, int copy)
{ {
...@@ -1511,7 +1511,7 @@ extract_trailers(msg_t *msg, msg_pub_t *mo, ...@@ -1511,7 +1511,7 @@ extract_trailers(msg_t *msg, msg_pub_t *mo,
/* Preparing (printing/encoding) a message structure for sending */ /* Preparing (printing/encoding) a message structure for sending */
/* Internal prototypes */ /* Internal prototypes */
static inline size_t su_inline size_t
msg_header_name_e(char b[], size_t bsiz, msg_header_t const *h, int flags); msg_header_name_e(char b[], size_t bsiz, msg_header_t const *h, int flags);
static size_t msg_header_prepare(msg_mclass_t const *, int flags, static size_t msg_header_prepare(msg_mclass_t const *, int flags,
msg_header_t *h, msg_header_t **return_next, msg_header_t *h, msg_header_t **return_next,
...@@ -1731,7 +1731,7 @@ issize_t msg_header_e(char b[], isize_t bsiz, msg_header_t const *h, int flags) ...@@ -1731,7 +1731,7 @@ issize_t msg_header_e(char b[], isize_t bsiz, msg_header_t const *h, int flags)
} }
/** Encode header name */ /** Encode header name */
static inline su_inline
size_t size_t
msg_header_name_e(char b[], size_t bsiz, msg_header_t const *h, int flags) msg_header_name_e(char b[], size_t bsiz, msg_header_t const *h, int flags)
{ {
...@@ -1854,7 +1854,7 @@ char *msg_as_string(su_home_t *home, msg_t *msg, msg_pub_t *pub, int flags, ...@@ -1854,7 +1854,7 @@ char *msg_as_string(su_home_t *home, msg_t *msg, msg_pub_t *pub, int flags,
/* ====================================================================== */ /* ====================================================================== */
/* Handling header chain */ /* Handling header chain */
static inline void serialize_first(msg_t *msg, msg_header_t *h); su_inline void serialize_first(msg_t *msg, msg_header_t *h);
static msg_header_t **serialize_one(msg_t *msg, msg_header_t *h, static msg_header_t **serialize_one(msg_t *msg, msg_header_t *h,
msg_header_t **prev); msg_header_t **prev);
...@@ -1864,13 +1864,13 @@ msg_header_t **msg_chain_head(msg_t const *msg) ...@@ -1864,13 +1864,13 @@ msg_header_t **msg_chain_head(msg_t const *msg)
return msg ? (msg_header_t **)&msg->m_chain : NULL; return msg ? (msg_header_t **)&msg->m_chain : NULL;
} }
static inline msg_header_t **_msg_chain_head(msg_t const *msg) su_inline msg_header_t **_msg_chain_head(msg_t const *msg)
{