Changeset 5302

Remove compiler.h. It isn't needed since we don't support ancient gcc

Committed by:  mjagdis
Date:  Jan 07 2009 * 18:27 (about 1 year ago)

Affected files:

callweaver/trunk/include/callweaver/Makefile.am (unified diff)

r5301r5302
1616 channel.h \
1717 chanvars.h \
1818 cli.h \
19 compiler.h \
2019 config.h \
2120 crypto.h \
2221 devicestate.h \

callweaver/trunk/include/callweaver/astobj.h (unified diff)

r4512r5302
2626 #include <string.h>
2727
2828 #include "callweaver/lock.h"
29 #include "callweaver/compiler.h"
3029
30
3131 /*! \file
3232 * \brief A set of macros implementing objects and containers.
3333 * Macros are used for maximum performance, to support multiple inheritance,
------
220220 do { \
221221 int newcount = 0; \
222222 ASTOBJ_WRLOCK(object); \
223 if (__builtin_expect((object)->refcount > 0, 1)) \
223 if ((object)->refcount > 0) \
224224 newcount = --((object)->refcount); \
225225 else \
226226 cw_log(CW_LOG_WARNING, "Unreferencing unreferenced (object)!\n"); \

callweaver/trunk/include/callweaver/strings.h (unified diff)

r5298r5302
3232 #include <ctype.h>
3333
3434 #include "callweaver/inline_api.h"
35 #include "callweaver/compiler.h"
3635
36
3737 static inline int cw_strlen_zero(const char *s)
3838 {
3939 return (!s || (*s == '\0'));
------
129129 CW_INLINE_API(
130130 void cw_copy_string(char *dst, const char *src, size_t size),
131131 {
132 while (*src && size) {
132 while (*src) {
133133 *dst++ = *src++;
134 size--;
134 if (--size)
135 continue;
136 dst--;
137 break;
135138 }
136 if (__builtin_expect(!size, 0))
137 dst--;
138139 *dst = '\0';
139140 }
140141 )