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

Function hold_file

src/pr.c:1560–1579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1558 status of all columns in the column list. */
1559
1560static void
1561hold_file (COLUMN *p)
1562{
1563 COLUMN *q;
1564 int i;
1565
1566 if (!parallel_files)
1567 for (q = column_vector, i = columns; i; ++q, --i)
1568 {
1569 if (storing_columns)
1570 q->status = FF_FOUND;
1571 else
1572 q->status = ON_HOLD;
1573 }
1574 else
1575 p->status = ON_HOLD;
1576
1577 p->lines_to_print = 0;
1578 --files_ready_to_read;
1579}
1580
1581/* Undo hold_file -- go through the column list and change any
1582 ON_HOLD columns to OPEN. Used at the end of each page. */

Callers 3

read_rest_of_lineFunction · 0.85
skip_readFunction · 0.85
read_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected