| 213 | } |
| 214 | |
| 215 | rt_inline unsigned int rt_slist_len(const rt_slist_t *l) |
| 216 | { |
| 217 | unsigned int len = 0; |
| 218 | const rt_slist_t *list = l->next; |
| 219 | while (list != RT_NULL) |
| 220 | { |
| 221 | list = list->next; |
| 222 | len ++; |
| 223 | } |
| 224 | |
| 225 | return len; |
| 226 | } |
| 227 | |
| 228 | rt_inline rt_slist_t *rt_slist_pop(rt_slist_t *l) |
| 229 | { |
no outgoing calls