home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Tex / Tex29 / StTeXsrc.zoo / src / page.h < prev    next >
Text File  |  1988-03-13  |  2KB  |  79 lines

  1.  
  2. /*
  3.  * @(#)page.h 2.5 EPA
  4.  *
  5.  * Copyright 1987,1988 Pat J Monardo
  6.  *
  7.  * Redistribution of this file is permitted through
  8.  * the specifications in the file COPYING.
  9.  *
  10.  * 
  11.  */
  12.  
  13. global  ptr     last_page_glue;
  14.  
  15. #define active_height   active_width
  16. #define cur_height      active_height[1]
  17.  
  18. ptr     prune_page_top();
  19.  
  20. global  scal    best_height_plus_depth;
  21. #define DEPLORABLE      100000
  22.  
  23. ptr     vert_break();
  24. ptr     vsplit();
  25.  
  26. global  ptr     page_tail;
  27. global  int     page_contents;
  28.  
  29. #define INSERTS_ONLY    1
  30. #define BOX_THERE       2
  31.  
  32. global  ptr     best_page_break;
  33. global  scal    best_size;
  34. global  scal    page_max_depth;
  35. global  val     least_page_cost;
  36.  
  37. #define INSERTING               0
  38. #define SPLIT_UP                1
  39. #define broken_ptr(N)           link(N + 1)
  40. #define broken_ins(N)           info(N + 1)
  41. #define last_ins_ptr(N)         link(N + 2)
  42. #define best_ins_ptr(N)         info(N + 2)
  43. #define PAGE_INS_NODE_SIZE      4
  44.  
  45. global  scal    page_so_far[];
  46.  
  47. #define page_goal   page_so_far[0]
  48. #define page_total  page_so_far[1]
  49. #define page_shrink page_so_far[6]
  50. #define page_depth  page_so_far[7]
  51.  
  52. global  ptr     last_glue;
  53. global  val     last_penalty;
  54. global  scal    last_kern;
  55. global  val     insert_penalties;
  56.  
  57. int     print_totals();
  58.  
  59. #define start_new_page() \
  60.     {page_contents = EMPTY; \
  61.     page_tail = page_head; \
  62.     link(page_head) = NULL; \
  63.     last_glue = MAX_HALFWORD; \
  64.     last_penalty = 0; \
  65.     last_kern = 0; \
  66.     page_depth = 0; \
  67.     page_max_depth = 0;}
  68.  
  69. int     freeze_page_specs();
  70.  
  71. global  bool    output_active;
  72.  
  73. int     ensure_vbox();
  74. int     box_error();
  75. int     build_page();
  76. int     fire_up();
  77.  
  78. #define contrib_tail            nest[0].tail_field
  79.