doc: remove colon from node name
[coreutils.git] / src / expand-common.h
blob3f3bfbced3e1dfc9d649422821bc81811c27a1c0
1 /* expand-common - common functionality for expand/unexapnd
3 Copyright (C) 1989-2019 Free Software Foundation, Inc.
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <https://www.gnu.org/licenses/>. */
18 /* If true, convert blanks even after nonblank characters have been
19 read on the line. */
20 extern bool convert_entire_line;
22 /* The maximum distance between tab stops. */
23 extern size_t max_column_width;
25 /* Null-terminated array of input filenames. */
26 //extern char **file_list;
28 /* Default for 'file_list' if no files are given on the command line. */
29 //extern char *stdin_argv[];
31 /* True if we have ever read standard input. */
32 //extern bool have_read_stdin;
34 /* The desired exit status. */
35 extern int exit_status;
37 /* Add tab stop TABVAL to the end of 'tab_list'. */
38 extern void
39 add_tab_stop (uintmax_t tabval);
41 /* Add the comma or blank separated list of tab stops STOPS
42 to the list of tab stops. */
43 extern void
44 parse_tab_stops (char const *stops);
46 /* TODO: Document */
47 extern uintmax_t
48 get_next_tab_column (const uintmax_t column, size_t* tab_index,
49 bool* last_tab);
51 /* Called after all command-line options have been parsed,
52 sets the final tab-stops values */
53 extern void
54 finalize_tab_stops (void);
59 /* Sets new file-list */
60 extern void
61 set_file_list (char **file_list);
63 /* Close the old stream pointer FP if it is non-NULL,
64 and return a new one opened to read the next input file.
65 Open a filename of '-' as the standard input.
66 Return NULL if there are no more input files. */
67 extern FILE *
68 next_file (FILE *fp);
70 /* */
71 extern void
72 cleanup_file_list_stdin (void);
75 extern void
76 emit_tab_list_info (void);