static bool same_para _ ((int c));
static void flush_paragraph _ ((void));
static void fmt_paragraph _ ((void));
-static void check_punctuation _ ((WORD * w));
-static COST base_cost _ ((WORD * this));
-static COST line_cost _ ((WORD * next, int len));
-static void put_paragraph _ ((WORD * finish));
-static void put_line _ ((WORD * w, int indent));
-static void put_word _ ((WORD * w));
+static void check_punctuation _ ((WORD *w));
+static COST base_cost _ ((WORD *this));
+static COST line_cost _ ((WORD *next, int len));
+static void put_paragraph _ ((WORD *finish));
+static void put_line _ ((WORD *w, int indent));
+static void put_word _ ((WORD *w));
static void put_space _ ((int space));
/* The name this program was run with. */
static const char *prefix;
/* User-supplied maximum line width (default WIDTH). The only output
-lines
+ lines
longer than this will each comprise a single word. */
static int max_width;
{
max_width = 0;
/* Old option syntax; a dash followed by one or more digits.
- Move past the number. */
+ Move past the number. */
for (++argv[1]; ISDIGIT (*argv[1]); ++argv[1])
{
/* FIXME: use strtol to detect overflow. */
maximal number of non-blank (excluding any prefix) lines subject to:
* In split mode, a paragraph is a single non-blank line.
* In crown mode, the second and subsequent lines must have the
- same indentation, but possibly different from the indent of the
- first line.
+ same indentation, but possibly different from the indent of the
+ first line.
* Tagged mode is similar, but the first and second lines must have
- different indentations.
+ different indentations.
* Otherwise, all lines of a paragraph must have the same indent.
If a prefix is in effect, it must be present at the same indent for
each line in the paragraph.
{
put_space (next_prefix_indent);
for (s = prefix; out_column != in_column; out_column++)
- putchar(*s++);
+ putchar (*s++);
}
while (c != '\n' && c != EOF)
{
if (c == '\n' || c == EOF || uniform)
word_limit->space = word_limit->final ? 2 : 1;
if (word_limit == end_of_word)
- flush_paragraph();
+ flush_paragraph ();
word_limit++;
if (c == EOF)
return EOF;
put_space (indent - out_column);
endline = w->next_break - 1;
- for ( ; w != endline; w++)
+ for (; w != endline; w++)
{
put_word (w);
put_space (w->space);
s = w->text;
for (n = w->length; n != 0; n--)
- putchar(*s++);
+ putchar (*s++);
out_column += w->length;
}