home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / CMTEX330 / SOURCE / EVAL.H < prev    next >
C/C++ Source or Header  |  1992-02-19  |  2KB  |  83 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 VMODE        1
  14. #define HMODE        (VMODE + MAX_COMMAND + 1)
  15. #define MMODE        (HMODE + MAX_COMMAND + 1)
  16.  
  17. global    ptr    lig_stack;
  18. global    int    cur_l;
  19. global    int    cur_r;
  20. global    ptr    cur_q;
  21. global    bool    lft_hit;
  22. global    bool    rt_hit;
  23. global    bool    ligature_present;
  24.  
  25. global    void    main_control();
  26. global    void    app_space();
  27.  
  28. global void    push_nest();
  29. global void    pop_nest();
  30. global bool    realloc_nest();
  31. global void    print_mode();
  32.  
  33. #define IGNORE_DEPTH    -65536000
  34.  
  35. struct list {
  36.     int    mode_field;
  37.     ptr    head_field;
  38.     ptr    tail_field;
  39.     int    pg_field;
  40.     int    aux_field;
  41.     int    ml_field;
  42.     int    clang_field;
  43.     short    lhm_field;
  44.     short    rhm_field;
  45. };
  46. typedef struct list list;
  47.  
  48. global    list    cur_list;
  49.  
  50. global    list    *nest;
  51. global    list    *nest_end;
  52. global    list    *nest_ptr;
  53. global    list    *max_nest_stack;
  54.  
  55. #define mode            cur_list.mode_field
  56. #define head            cur_list.head_field
  57. #define tail            cur_list.tail_field
  58. #define prev_graf        cur_list.pg_field
  59. #define aux            cur_list.aux_field
  60. #define prev_depth        aux
  61. #define space_factor        aux
  62. #define incompleat_noad        aux
  63. #define mode_line        cur_list.ml_field
  64. #define clang            cur_list.clang_field
  65. #define lhmin            cur_list.lhm_field
  66. #define rhmin            cur_list.rhm_field
  67.  
  68. global    int        shown_mode;
  69.  
  70. global void    show_activities();
  71.  
  72. #define tail_append(N)        {tail = link(tail) = N;}
  73.  
  74. global void    insert_dollar_sign();
  75. global void    you_cant();
  76. global void    report_illegal_case();
  77. global bool    privileged();
  78. global void    missing_font();
  79. global bool    its_all_over();
  80.  
  81. global void    _eval_init();
  82. global void    _eval_init_once();
  83.