home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / CMTEX330 / SOURCE / PACK.H < prev    next >
Text File  |  1992-02-19  |  837b  |  44 lines

  1.  
  2. /*
  3.  * %Y%:%M%:%I%:%Q%
  4.  *
  5.  * Copyright 1987,1988,1991 Pat J Monardo
  6.  *
  7.  * Redistribution of this file is permitted through
  8.  * the specifications in the file COPYING.
  9.  *
  10.  *
  11.  */
  12.  
  13. #define EXACTLY        0
  14. #define ADDITIONAL    1
  15. #define NATURAL        0, ADDITIONAL
  16.  
  17. global    ptr    adjust_head;
  18. global    ptr    adjust_tail;
  19.  
  20. global    scal    total_stretch[];
  21. global    scal    total_shrink[];
  22.  
  23. #define get_stretch_order() \
  24.     (total_stretch[FILLL] != 0) ? FILLL : \
  25.     (total_stretch[FILL] != 0) ? FILL : \
  26.     (total_stretch[FIL] != 0) ? FIL : \
  27.     NORMAL
  28.  
  29. #define get_shrink_order() \
  30.     (total_shrink[FILLL] != 0) ? FILLL : \
  31.     (total_shrink[FILL] != 0) ? FILL : \
  32.     (total_shrink[FIL] != 0) ? FIL : \
  33.     NORMAL
  34.  
  35. global    int    last_badness;
  36. global    int    pack_begin_line;
  37.  
  38. ptr    hpack();
  39. #define vpack(P, H)    vpackage(P, H, MAX_DIMEN)
  40. ptr    vpackage();
  41.  
  42. void    _pack_init();
  43. void    _pack_init_once();
  44.