home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / CMTEX330 / SOURCE / PRINT.H < prev    next >
Text File  |  1992-02-19  |  1KB  |  64 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. global    file    log_file;
  14. global    str    log_name;
  15.  
  16. global    int    selector;
  17.  
  18. #define NO_PRINT    16 
  19. #define TERM_ONLY    17
  20. #define LOG_ONLY    18
  21. #define TERM_AND_LOG    19
  22. #define PSEUDO        20
  23. #define NEW_STRING    21
  24. #define MAX_SELECTOR    21
  25.  
  26. global    int    term_offset;
  27. global    int    file_offset;
  28.  
  29. global    int    tally;
  30. global    int    first_count;
  31. global    int    trick_count;
  32. global    int    trick_buf[];
  33.  
  34. int    begin_pseudoprint();
  35. void    set_trick_count();
  36.  
  37. #define HALF_ERROR_LINE        32
  38. #define ERROR_LINE        64
  39. #define MAX_PRINT_LINE        72
  40.  
  41. global    int    dig[];
  42.  
  43. void    print();
  44. void    print_char();
  45. void    print_ASCII();
  46. void    print_ln();
  47. void    print_esc();
  48. void    print_nl();
  49. void    print_the_digs();
  50. void    print_int();
  51. void    print_two();
  52. void    print_hex();
  53. void    print_roman_int();
  54.  
  55. #define wterm(c)    {putchar(c);}
  56. #define wterm_cr()    {putchar('\n');}
  57. #define wlog(c)        {putc(c, log_file);}
  58. #define wlog_cr()    {putc('\n', log_file);}
  59. #define wfile(c)    {putc(c, write_file[selector]);}
  60. #define wfile_cr()    {putc('\n', write_file[selector]);}
  61.  
  62. void    _print_init();
  63. void    _print_init_once();
  64.