mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 07:04:17 +00:00
a little update to the sofia-sip library
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4939 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
fabed21ea8
commit
853936abd3
270 files changed
+37121
-11402
No files matched your search
@@ -56,7 +56,8 @@ SOFIA_BEGIN_DECLS
|
||||
* 1) Header class definitions.
|
||||
*/
|
||||
|
||||
#if HAVE_STRUCT_KEYWORDS
|
||||
/* Do not use keywords until you fix msg_kind_foo_critical thing! */ \
|
||||
#if HAVE_STRUCT_KEYWORDS && 0
|
||||
/** Define a header class */
|
||||
#define MSG_HEADER_CLASS(pr, c, l, s, params, kind, dup, upd) \
|
||||
{{ \
|
||||
@@ -74,6 +75,7 @@ SOFIA_BEGIN_DECLS
|
||||
hc_kind: msg_kind_##kind, \
|
||||
}}
|
||||
#else
|
||||
/** Define a header class */
|
||||
#define MSG_HEADER_CLASS(pr, c, l, s, params, kind, dup, upd) \
|
||||
{{ \
|
||||
pr##c##_hash, \
|
||||
@@ -198,9 +200,11 @@ SOFIAPUBFUN issize_t msg_parse_next_field(su_home_t *home, msg_header_t *prev,
|
||||
|
||||
/** Duplicate string. @HI */
|
||||
#define MSG_STRING_DUP(p, d, s) \
|
||||
(void)((s)?((p)=(char*)memccpy((void *)((d)=(char*)p),(s),0,SIZE_MAX))\
|
||||
(void)((s)?((p)=(char*)memccpy((void *)((d)=(char*)p),(s),0,INT_MAX))\
|
||||
:((d)=NULL))
|
||||
|
||||
/* Solaris has broken memccpy - it considers last argument as signed */
|
||||
|
||||
/** Calculate string size. @HI */
|
||||
#define MSG_STRING_SIZE(s) ((s) ? (strlen(s) + 1) : 0)
|
||||
|
||||
|
||||
Reference in new issue
Block a user