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

Function reset_status

src/pr.c:1584–1605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1582 ON_HOLD columns to OPEN. Used at the end of each page. */
1583
1584static void
1585reset_status (void)
1586{
1587 int i = columns;
1588 COLUMN *p;
1589
1590 for (p = column_vector; i; --i, ++p)
1591 if (p->status == ON_HOLD)
1592 {
1593 p->status = OPEN;
1594 files_ready_to_read++;
1595 }
1596
1597 if (storing_columns)
1598 {
1599 if (column_vector->status == CLOSED)
1600 /* We use the info to output an error message in skip_to_page. */
1601 files_ready_to_read = 0;
1602 else
1603 files_ready_to_read = 1;
1604 }
1605}
1606
1607/* Print a single file, or multiple files in parallel.
1608

Callers 2

print_pageFunction · 0.85
skip_to_pageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected