Compare two stream IDs. Return -1 if a < b, 0 if a == b, 1 if a > b. */
| 387 | |
| 388 | /* Compare two stream IDs. Return -1 if a < b, 0 if a == b, 1 if a > b. */ |
| 389 | int streamCompareID(streamID *a, streamID *b) { |
| 390 | if (a->ms > b->ms) return 1; |
| 391 | else if (a->ms < b->ms) return -1; |
| 392 | /* The ms part is the same. Check the sequence part. */ |
| 393 | else if (a->seq > b->seq) return 1; |
| 394 | else if (a->seq < b->seq) return -1; |
| 395 | /* Everything is the same: IDs are equal. */ |
| 396 | return 0; |
| 397 | } |
| 398 | |
| 399 | void streamGetEdgeID(stream *s, int first, streamID *edge_id) |
| 400 | { |
no outgoing calls
no test coverage detected