Home | History | Annotate | Download | only in sed

Lines Matching refs:COST

48    cost of 50 means that it is as bad as a line 5 characters too short
52 typedef long COST;
54 #define MAXCOST (~(((unsigned long) 1) << (8 * sizeof (COST) -1)))
57 #define EQUIV(n) SQR ((COST) (n))
59 /* Cost of a filled line n chars longer or shorter than best_width. */
62 /* Cost of the difference between adjacent filled lines. */
65 /* Basic cost per line. */
68 /* Cost of breaking a line after the first word of a sentence, where
72 /* Cost of breaking a line before the last word of a sentence, where
79 /* Cost of breaking a line after a period not marking end of a sentence.
82 we assign a very high cost -- it should be avoided unless things are
132 COST best_cost; /* cost of best paragraph starting here */
146 static COST base_cost P_ ((WORD *this));
147 static COST line_cost P_ ((WORD *next, int len));
396 COST best_break;
399 - find a low-cost line break near the end,
438 register COST wcost, best;
478 /* Return the constant component of the cost of breaking before the
481 static COST
484 register COST cost;
486 cost = LINE_COST;
493 cost -= SENTENCE_BONUS;
495 cost += NOBREAK_COST;
498 cost -= PUNCT_BONUS;
500 cost += WIDOW_COST ((this - 1)->length);
504 cost -= PAREN_BONUS;
506 cost += ORPHAN_COST (this->length);
508 return cost;
511 /* Return the component of the cost of breaking before word NEXT that
514 static COST
518 register COST cost;
523 cost = SHORT_COST (n);
527 cost += RAGGED_COST (n);
529 return cost;