| 3906 | } |
| 3907 | |
| 3908 | hb_buffer_t* hb_buffer_list_rem_head(hb_buffer_list_t *list) |
| 3909 | { |
| 3910 | if (list == NULL) |
| 3911 | { |
| 3912 | return NULL; |
| 3913 | } |
| 3914 | hb_buffer_t *head = list->head; |
| 3915 | if (list->head != NULL) |
| 3916 | { |
| 3917 | if (list->head == list->tail) |
| 3918 | { |
| 3919 | list->tail = NULL; |
| 3920 | } |
| 3921 | list->head = list->head->next; |
| 3922 | list->count--; |
| 3923 | list->size -= head->size; |
| 3924 | } |
| 3925 | if (head != NULL) |
| 3926 | { |
| 3927 | head->next = NULL; |
| 3928 | } |
| 3929 | return head; |
| 3930 | } |
| 3931 | |
| 3932 | hb_buffer_t* hb_buffer_list_rem_tail(hb_buffer_list_t *list) |
| 3933 | { |
no outgoing calls
no test coverage detected