Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belle-sip
Commits
163cb640
Commit
163cb640
authored
Apr 19, 2013
by
Ghislain MARY
Browse files
Do not redefine the inline keyword.
parent
e72cdfc5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
15 deletions
+17
-15
include/belle-sip/defs.h
include/belle-sip/defs.h
+3
-1
include/belle-sip/utils.h
include/belle-sip/utils.h
+6
-6
src/belle_sip_internal.h
src/belle_sip_internal.h
+3
-3
src/port.h
src/port.h
+5
-5
No files found.
include/belle-sip/defs.h
View file @
163cb640
...
...
@@ -28,7 +28,9 @@
#endif
#ifdef _MSC_VER
#define inline __inline
#define BELLESIP_INLINE __inline
#else
#define BELLESIP_INLINE inline
#endif
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) || defined(__WIN32__)
...
...
include/belle-sip/utils.h
View file @
163cb640
...
...
@@ -61,7 +61,7 @@ BELLESIP_EXPORT void belle_sip_logv(int level, const char *fmt, va_list args);
#ifdef BELLE_SIP_DEBUG_MODE
static
inline
void
belle_sip_debug
(
const
char
*
fmt
,...)
static
BELLESIP_INLINE
void
belle_sip_debug
(
const
char
*
fmt
,...)
{
va_list
args
;
va_start
(
args
,
fmt
);
...
...
@@ -82,14 +82,14 @@ static inline void belle_sip_debug(const char *fmt,...)
#else
static
inline
void
belle_sip_log
(
belle_sip_log_level
lev
,
const
char
*
fmt
,...){
static
BELLESIP_INLINE
void
belle_sip_log
(
belle_sip_log_level
lev
,
const
char
*
fmt
,...){
va_list
args
;
va_start
(
args
,
fmt
);
belle_sip_logv
(
lev
,
fmt
,
args
);
va_end
(
args
);
}
static
inline
void
belle_sip_message
(
const
char
*
fmt
,...)
static
BELLESIP_INLINE
void
belle_sip_message
(
const
char
*
fmt
,...)
{
va_list
args
;
va_start
(
args
,
fmt
);
...
...
@@ -97,7 +97,7 @@ static inline void belle_sip_message(const char *fmt,...)
va_end
(
args
);
}
static
inline
void
belle_sip_warning
(
const
char
*
fmt
,...)
static
BELLESIP_INLINE
void
belle_sip_warning
(
const
char
*
fmt
,...)
{
va_list
args
;
va_start
(
args
,
fmt
);
...
...
@@ -107,7 +107,7 @@ static inline void belle_sip_warning(const char *fmt,...)
#endif
static
inline
void
belle_sip_error
(
const
char
*
fmt
,...)
static
BELLESIP_INLINE
void
belle_sip_error
(
const
char
*
fmt
,...)
{
va_list
args
;
va_start
(
args
,
fmt
);
...
...
@@ -115,7 +115,7 @@ static inline void belle_sip_error(const char *fmt,...)
va_end
(
args
);
}
static
inline
void
belle_sip_fatal
(
const
char
*
fmt
,...)
static
BELLESIP_INLINE
void
belle_sip_fatal
(
const
char
*
fmt
,...)
{
va_list
args
;
va_start
(
args
,
fmt
);
...
...
src/belle_sip_internal.h
View file @
163cb640
...
...
@@ -556,15 +556,15 @@ BELLE_SIP_DECLARE_CUSTOM_VPTR_BEGIN(belle_sip_transaction_t,belle_sip_object_t)
void
(
*
on_terminate
)(
belle_sip_transaction_t
*
obj
);
BELLE_SIP_DECLARE_CUSTOM_VPTR_END
static
inline
const
belle_sip_timer_config_t
*
belle_sip_transaction_get_timer_config
(
belle_sip_transaction_t
*
obj
){
static
BELLESIP_INLINE
const
belle_sip_timer_config_t
*
belle_sip_transaction_get_timer_config
(
belle_sip_transaction_t
*
obj
){
return
belle_sip_stack_get_timer_config
(
obj
->
provider
->
stack
);
}
static
inline
void
belle_sip_transaction_start_timer
(
belle_sip_transaction_t
*
obj
,
belle_sip_source_t
*
timer
){
static
BELLESIP_INLINE
void
belle_sip_transaction_start_timer
(
belle_sip_transaction_t
*
obj
,
belle_sip_source_t
*
timer
){
belle_sip_main_loop_add_source
(
obj
->
provider
->
stack
->
ml
,
timer
);
}
/** */
static
inline
void
belle_sip_transaction_stop_timer
(
belle_sip_transaction_t
*
obj
,
belle_sip_source_t
*
timer
){
static
BELLESIP_INLINE
void
belle_sip_transaction_stop_timer
(
belle_sip_transaction_t
*
obj
,
belle_sip_source_t
*
timer
){
belle_sip_main_loop_remove_source
(
obj
->
provider
->
stack
->
ml
,
timer
);
}
...
...
src/port.h
View file @
163cb640
...
...
@@ -86,11 +86,11 @@ const void* belle_sip_thread_getspecific(belle_sip_thread_key_t key);
int
belle_sip_thread_key_delete
(
belle_sip_thread_key_t
key
);
static
inline
void
close_socket
(
belle_sip_socket_t
s
){
static
BELLESIP_INLINE
void
close_socket
(
belle_sip_socket_t
s
){
closesocket
(
s
);
}
static
inline
int
get_socket_error
(
void
){
static
BELLESIP_INLINE
int
get_socket_error
(
void
){
return
WSAGetLastError
();
}
...
...
@@ -104,7 +104,7 @@ BELLESIP_INTERNAL_EXPORT void belle_sip_sleep(unsigned int ms);
#endif
#define usleep(us) Sleep((us)/1000)
static
inline
int
inet_aton
(
const
char
*
ip
,
struct
in_addr
*
p
){
static
BELLESIP_INLINE
int
inet_aton
(
const
char
*
ip
,
struct
in_addr
*
p
){
*
(
long
*
)
p
=
inet_addr
(
ip
);
return
0
;
}
...
...
@@ -123,11 +123,11 @@ typedef pthread_key_t belle_sip_thread_key_t;
#define belle_sip_thread_getspecific(key) pthread_getspecific(key)
#define belle_sip_thread_key_delete(key) pthread_key_delete(key)
static
inline
void
close_socket
(
belle_sip_socket_t
s
){
static
BELLESIP_INLINE
void
close_socket
(
belle_sip_socket_t
s
){
close
(
s
);
}
static
inline
int
get_socket_error
(
void
){
static
BELLESIP_INLINE
int
get_socket_error
(
void
){
return
errno
;
}
#define belle_sip_get_socket_error_string() strerror(errno)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment