id: the id of element to be freed. return code: -1: faile; >=0:OK.
| 138 | //id: the id of element to be freed. |
| 139 | //return code: -1: faile; >=0:OK. |
| 140 | static inline int stklist_push(StackList_t *p, const uint64_t val){ |
| 141 | int tail = 0; |
| 142 | |
| 143 | if (p==NULL) |
| 144 | return -1; |
| 145 | if (p->top < p->size){ |
| 146 | p->ele[p->top++] = val; |
| 147 | return 0; |
| 148 | } |
| 149 | else |
| 150 | return -1; |
| 151 | } |
| 152 | |
| 153 | static inline int stklist_size(StackList_t * p) |
| 154 | { |
no outgoing calls
no test coverage detected