MCPcopy Create free account
hub / github.com/coreutils/coreutils / add_range_pair

Function add_range_pair

src/set-fields.c:46–54  ·  view source on GitHub ↗

Append LOW, HIGH to the list RP of range pairs, allocating additional space if necessary. Update global variable N_FRP. When allocating, update global variable N_FRP_ALLOCATED. */

Source from the content-addressed store, hash-verified

44 space if necessary. Update global variable N_FRP. When allocating,
45 update global variable N_FRP_ALLOCATED. */
46static void
47add_range_pair (uintmax_t lo, uintmax_t hi)
48{
49 if (n_frp == n_frp_allocated)
50 frp = xpalloc (frp, &n_frp_allocated, 1, -1, sizeof *frp);
51 frp[n_frp].lo = lo;
52 frp[n_frp].hi = hi;
53 ++n_frp;
54}
55
56
57/* Comparison function for qsort to order the list of

Callers 2

complement_rpFunction · 0.85
set_fieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected