| 203 | } |
| 204 | |
| 205 | static uintptr_t pn_list_hashcode(void *object) |
| 206 | { |
| 207 | assert(object); |
| 208 | pn_list_t *list = (pn_list_t *) object; |
| 209 | uintptr_t hash = 1; |
| 210 | |
| 211 | for (size_t i = 0; i < list->size; i++) { |
| 212 | hash = hash * 31 + pn_hashcode(pn_list_get(list, i)); |
| 213 | } |
| 214 | |
| 215 | return hash; |
| 216 | } |
| 217 | |
| 218 | static intptr_t pn_list_compare(void *oa, void *ob) |
| 219 | { |
nothing calls this directly
no test coverage detected