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/compiler.h
callweaver/trunk/include/callweaver/Makefile.am (diff)
callweaver/trunk/include/callweaver/astobj.h (diff)
callweaver/trunk/include/callweaver/strings.h (diff)
callweaver/trunk/include/callweaver/Makefile.am (unified diff)
| r5301 | r5302 | |
|---|---|---|
| 16 | 16 | channel.h \ |
| 17 | 17 | chanvars.h \ |
| 18 | 18 | cli.h \ |
| 19 | compiler.h \ | |
| 20 | 19 | config.h \ |
| 21 | 20 | crypto.h \ |
| 22 | 21 | devicestate.h \ |
callweaver/trunk/include/callweaver/astobj.h (unified diff)
| r4512 | r5302 | |
|---|---|---|
| 26 | 26 | #include <string.h> |
| 27 | 27 | |
| 28 | 28 | #include "callweaver/lock.h" |
| 29 | #include "callweaver/compiler.h" | |
| 30 | 29 | |
| 30 | ||
| 31 | 31 | /*! \file |
| 32 | 32 | * \brief A set of macros implementing objects and containers. |
| 33 | 33 | * Macros are used for maximum performance, to support multiple inheritance, |
| --- | --- | |
| 220 | 220 | do { \ |
| 221 | 221 | int newcount = 0; \ |
| 222 | 222 | ASTOBJ_WRLOCK(object); \ |
| 223 | if (__builtin_expect((object)->refcount > 0, 1)) \ | |
| 223 | if ((object)->refcount > 0) \ | |
| 224 | 224 | newcount = --((object)->refcount); \ |
| 225 | 225 | else \ |
| 226 | 226 | cw_log(CW_LOG_WARNING, "Unreferencing unreferenced (object)!\n"); \ |
callweaver/trunk/include/callweaver/strings.h (unified diff)
| r5298 | r5302 | |
|---|---|---|
| 32 | 32 | #include <ctype.h> |
| 33 | 33 | |
| 34 | 34 | #include "callweaver/inline_api.h" |
| 35 | #include "callweaver/compiler.h" | |
| 36 | 35 | |
| 36 | ||
| 37 | 37 | static inline int cw_strlen_zero(const char *s) |
| 38 | 38 | { |
| 39 | 39 | return (!s || (*s == '\0')); |
| --- | --- | |
| 129 | 129 | CW_INLINE_API( |
| 130 | 130 | void cw_copy_string(char *dst, const char *src, size_t size), |
| 131 | 131 | { |
| 132 | while (*src && size) { | |
| 132 | while (*src) { | |
| 133 | 133 | *dst++ = *src++; |
| 134 | size--; | |
| 134 | if (--size) | |
| 135 | continue; | |
| 136 | dst--; | |
| 137 | break; | |
| 135 | 138 | } |
| 136 | if (__builtin_expect(!size, 0)) | |
| 137 | dst--; | |
| 138 | 139 | *dst = '\0'; |
| 139 | 140 | } |
| 140 | 141 | ) |
![Home changeset 5302 [home]](/images/logo.png?1180520111)
RSS Feeds