| 119 | /* add at tail */ |
| 120 | |
| 121 | static inline void |
| 122 | __cirbuf_add_tail(struct cirbuf * cbuf, char c) |
| 123 | { |
| 124 | if (!CIRBUF_IS_EMPTY(cbuf)) { |
| 125 | cbuf->end ++; |
| 126 | cbuf->end %= cbuf->maxlen; |
| 127 | } |
| 128 | cbuf->buf[cbuf->end] = c; |
| 129 | cbuf->len ++; |
| 130 | } |
| 131 | |
| 132 | int |
| 133 | cirbuf_add_tail_safe(struct cirbuf * cbuf, char c) |
no outgoing calls
no test coverage detected