home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / CMTEX330 / SOURCE / COND.H < prev    next >
C/C++ Source or Header  |  1992-02-19  |  1KB  |  62 lines

  1.  
  2. /*
  3.  * %Y%:%M%:%I%:%Q%
  4.  *
  5.  * Copyright 1987,1988,1991,1992 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    cond_ptr;
  14. global    int    cur_if;
  15. global    int    if_limit;
  16. global    int    if_line;
  17.  
  18. struct if_t {
  19.     mcell    node;
  20.     int    line_field;
  21.     ptr    fill_field;
  22. };
  23. typedef struct if_t if_t;
  24.  
  25. #define IF_NODE_SIZE        (sizeof(if_t))
  26. #define if_line_field(I)    ((if_t *) (I))->line_field
  27.  
  28. global    int    skip_line;
  29.  
  30. #define IF_CODE            1
  31. #define FI_CODE            2
  32. #define ELSE_CODE        3
  33. #define OR_CODE            4
  34.  
  35. #define IF_CHAR_CODE        0
  36. #define IF_CAT_CODE        1
  37. #define IF_INT_CODE        2
  38. #define IF_DIM_CODE        3
  39. #define IF_ODD_CODE        4
  40. #define IF_VMODE_CODE        5
  41. #define IF_HMODE_CODE        6
  42. #define IF_MMODE_CODE        7
  43. #define IF_INNER_CODE        8
  44. #define IF_VOID_CODE        9
  45. #define IF_HBOX_CODE        10
  46. #define IF_VBOX_CODE        11
  47. #define IFX_CODE        12
  48. #define IF_EOF_CODE        13
  49. #define IF_TRUE_CODE        14
  50. #define IF_FALSE_CODE        15
  51. #define IF_CASE_CODE        16
  52.  
  53. void    conditional();
  54.  
  55. void    push_cond();
  56. void    pop_cond();
  57. void    pass_text();
  58. void    change_if_limit();
  59.  
  60. void    _cond_init();
  61. void    _cond_init_once();
  62.