home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / CMTEX330 / SOURCE / FILEIO.H < prev    next >
Text File  |  1992-02-19  |  2KB  |  104 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    int    name_length;
  14. global    str    name_of_file;
  15.  
  16. global    str    cur_name;
  17. global    str    cur_area;
  18. global    str    cur_ext;
  19.  
  20. global    int    area_delimiter;
  21. global    int    ext_delimiter;
  22. global    int    path_delimiter;
  23.  
  24. void    print_file_name();
  25. void    pack_file_name();
  26.  
  27. str    make_name_str();
  28.  
  29. global    bool    name_in_progress;
  30.  
  31. void    prompt_file_name();
  32. void    scan_file_name();
  33.  
  34. #define pack_cur_name() \
  35.     {pack_file_name(cur_name, cur_area, cur_ext);}
  36.  
  37. void    pack_job_name();
  38. void    prompt_job_name();
  39.  
  40. global    str    job_name;
  41. global    str    job_area;
  42.  
  43. global    bool    log_opened;
  44.  
  45. void    start_input();
  46.  
  47. #define null_file ((FILE *) 0)
  48.  
  49. FILE    *a_open_in();
  50. FILE    *a_open_out();
  51.  
  52. FILE    *b_open_in();
  53. FILE    *b_open_out();
  54.  
  55. #define a_close(FP)        {fflush(FP);fclose(FP);}
  56. #define b_close(FP)        {fflush(FP);fclose(FP);}
  57.  
  58. bool     init_terminal();
  59. bool    input_ln();
  60. void    term_input();
  61. #define prompt_input(S)        {print(S); term_input();}
  62.  
  63. #define term_in            stdin
  64. #define term_out        stdout
  65. #define t_open_in()
  66. #define t_open_out()
  67. #define update_terminal()    fflush(stdout)
  68. #define clear_terminal()
  69.  
  70. void    open_log_file();
  71.  
  72. global    file    read_file[];
  73. global    int    read_open[];
  74.  
  75. #define OPENED            1
  76. #define CLOSED            2
  77.  
  78. bool    test_access();
  79.  
  80. #define READ_ACCESS        4
  81. #define WRITE_ACCESS         2
  82.  
  83. global    char    *input_path;
  84. global    char    *format_path;
  85. global    char    *font_path;
  86.  
  87. void    set_paths();
  88.  
  89. #define default_font_path    ":/usr/local/lib/tex/fonts/tfm"
  90. #define default_input_path     ":/usr/local/lib/tex/inputs"
  91.  
  92. #define NO_FILE_PATH         0
  93. #define INPUT_FILE_PATH     1
  94. #define FONT_FILE_PATH         2
  95.  
  96. global    str    str_dvi;
  97. global    str    str_tex;
  98. global    str    str_log;
  99. global    str    str_tfm;
  100. global    str    str_texput;
  101.  
  102. void    _fileio_init();
  103. void    _fileio_init_once();
  104.