mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
maint: document some functions used by expand and unexpand
* src/expand-common.h (get_next_tab_column, cleanup_file_list_stdin) (emit_tab_list_info): Document functions. * src/expand-common.c (cleanup_file_list_stdin, emit_tab_list_info): Likewise.
This commit is contained in:
1 parent
4141ae3e49
commit
f585f3a358
2 files changed
+10
-5
No files matched your search
+3
-2
@@ -380,7 +380,7 @@ next_file (FILE *fp)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
/* */
|
||||
/* Close standard input if we have read from it. */
|
||||
extern void
|
||||
cleanup_file_list_stdin (void)
|
||||
{
|
||||
@@ -388,7 +388,8 @@ cleanup_file_list_stdin (void)
|
||||
error (EXIT_FAILURE, errno, "-");
|
||||
}
|
||||
|
||||
|
||||
/* Emit the --help output for --tabs=LIST option accepted by expand and
|
||||
unexpand. */
|
||||
extern void
|
||||
emit_tab_list_info (void)
|
||||
{
|
||||
|
||||
+7
-3
@@ -38,7 +38,10 @@ add_tab_stop (colno tabval);
|
||||
extern void
|
||||
parse_tab_stops (char const *stops) _GL_ATTRIBUTE_NONNULL ();
|
||||
|
||||
/* TODO: Document */
|
||||
/* Return number of first tab stop after COLUMN. TAB_INDEX specifies
|
||||
many multiple tab-sizes. Set *LAST_TAB depending on whether we are
|
||||
returning COLUMN + 1 merely because we're past the last tab.
|
||||
If the number would overflow, diagnose this and exit. */
|
||||
extern colno
|
||||
get_next_tab_column (const colno column, idx_t *tab_index,
|
||||
bool *last_tab)
|
||||
@@ -63,10 +66,11 @@ set_file_list (char **file_list);
|
||||
extern FILE *
|
||||
next_file (FILE *fp);
|
||||
|
||||
/* */
|
||||
/* Close standard input if we have read from it. */
|
||||
extern void
|
||||
cleanup_file_list_stdin (void);
|
||||
|
||||
|
||||
/* Emit the --help output for --tabs=LIST option accepted by expand and
|
||||
unexpand. */
|
||||
extern void
|
||||
emit_tab_list_info (void);
|
||||
Reference in new issue
Block a user