Lines Matching defs:WORD
68 /* Cost of breaking a line after the first word of a sentence, where
69 the length of the word is N. */
72 /* Cost of breaking a line before the last word of a sentence, where
73 the length of the word is N. */
112 /* Word descriptor structure. */
114 typedef struct Word WORD;
116 struct Word
121 const char *text; /* the text of the word */
122 short length; /* length of this word */
133 WORD *next_break; /* break which achieves best_cost */
145 static void check_punctuation P_ ((WORD *w));
146 static COST base_cost P_ ((WORD *this));
147 static COST line_cost P_ ((WORD *next, int len));
148 static void put_paragraph P_ ((WORD *finish));
149 static void put_line P_ ((WORD *w, int indent));
150 static void put_word P_ ((WORD *w));
157 longer than this will each comprise a single word. */
184 static WORD words[MAXWORDS];
186 /* A pointer into the above word array, indicating the first position
187 after the last complete word. Sometimes it will point at an incomplete
188 word. */
189 static WORD *word_limit;
300 A word is a maximal non-empty string of non-white characters. A word
310 register WORD *end_of_word;
315 { /* for each word in a line */
317 /* Scan word. */
328 /* Scan inter-word space. */
372 /* Set extra fields in word W describing any attached punctuation. */
375 check_punctuation (register WORD *w)
394 WORD *split_point;
395 register WORD *w;
421 /* Copy words from split_point down to word -- we use memmove because
425 (word_limit - split_point + 1) * sizeof (WORD));
436 register WORD *start, *w;
450 /* At least one word, however long, in the line. */
479 word THIS. */
482 base_cost (register WORD *this)
511 /* Return the component of the cost of breaking before word NEXT that
515 line_cost (register WORD *next, register int len)
532 /* Output to stdout a paragraph from word up to (but not including)
533 FINISH, which must be in the next_break chain from word. */
536 put_paragraph (register WORD *finish)
538 register WORD *w;
545 /* Output to stdout the line beginning with word W, beginning in column
549 put_line (register WORD *w, int indent)
551 register WORD *endline;
566 /* Output to stdout the word W. */
569 put_word (register WORD *w)