| 307 | |
| 308 | |
| 309 | static int cmp_packed_refname(const char *r1, const char *r2) |
| 310 | { |
| 311 | while (1) { |
| 312 | if (*r1 == '\n') |
| 313 | return *r2 == '\n' ? 0 : -1; |
| 314 | if (*r1 != *r2) { |
| 315 | if (*r2 == '\n') |
| 316 | return 1; |
| 317 | else |
| 318 | return (unsigned char)*r1 < (unsigned char)*r2 ? -1 : +1; |
| 319 | } |
| 320 | r1++; |
| 321 | r2++; |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | static int cmp_packed_ref_records(const void *v1, const void *v2, |
| 326 | void *cb_data) |
no outgoing calls
no test coverage detected