home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Tex / Tex29 / StTeXsrc.zoo / src / eqstack.h < prev    next >
C/C++ Source or Header  |  1988-03-13  |  2KB  |  64 lines

  1.  
  2. /*
  3.  * @(#)eqstack.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     save_ptr;
  14. global  mword   save_stack[];
  15. global  ptr     max_save_stack;
  16.  
  17. global  qword   cur_level;
  18. global  group   cur_group;
  19. global  ptr     cur_boundary;
  20.  
  21. #define save_type(S)            save_stack[S].hh.hh2.b0
  22. #define save_level(S)           save_stack[S].hh.hh2.b1
  23. #define save_index(S)           save_stack[S].hh.hh2.rh
  24.  
  25. #define RESTORE_OLD_VALUE       0
  26. #define RESTORE_ZERO            1
  27. #define INSERT_TOKEN            2
  28. #define LEVEL_BOUNDARY          3
  29.  
  30. #define BOTTOM_LEVEL            0
  31. #define SIMPLE_GROUP            1
  32. #define HBOX_GROUP              2
  33. #define ADJUSTED_HBOX_GROUP     3
  34. #define VBOX_GROUP              4
  35. #define VTOP_GROUP              5
  36. #define ALIGN_GROUP             6
  37. #define NO_ALIGN_GROUP          7
  38. #define OUTPUT_GROUP            8
  39. #define MATH_GROUP              9
  40. #define DISC_GROUP              10
  41. #define INSERT_GROUP            11
  42. #define VCENTER_GROUP           12
  43. #define MATH_CHOICE_GROUP       13
  44. #define SEMI_SIMPLE_GROUP       14
  45. #define MATH_SHIFT_GROUP        15
  46. #define MATH_LEFT_GROUP         16
  47. #define MAX_GROUP_CODE          16
  48.  
  49. #define saved(I)    save_stack[save_ptr + I].i
  50.  
  51. int     new_save_level();
  52. int     eq_destroy();
  53. int     eq_save();
  54. int     eq_define();
  55. int     eq_word_define();
  56. int     geq_define();
  57. int     geq_word_define();
  58. int     unsave();
  59. int     offsave();
  60.  
  61. #ifdef STAT
  62. int     restore_trace();
  63. #endif
  64.