| 177 | } |
| 178 | |
| 179 | static inline str *context_get_str(enum osips_context type, |
| 180 | context_p ctx, int pos) |
| 181 | { |
| 182 | #ifdef DBG_MALLOC |
| 183 | if (pos < 0 || pos >= type_sizes[type][CONTEXT_STR_TYPE]) { |
| 184 | LM_CRIT("Bad pos: %d (%d)\n", pos, type_sizes[type][CONTEXT_STR_TYPE]); |
| 185 | abort(); |
| 186 | } |
| 187 | #endif |
| 188 | |
| 189 | return &((str *)(void *)((char *)ctx + type_offsets[type][CONTEXT_STR_TYPE]))[pos]; |
| 190 | } |
| 191 | |
| 192 | static inline void *context_get_ptr(enum osips_context type, |
| 193 | context_p ctx, int pos) |
no outgoing calls
no test coverage detected