TeX in C
Explore TeX with modern c compiler.
io.h 文件参考
#include <stdio.h>
#include "global.h"
#include "tex_constant.h"
#include "charset.h"
#include "str.h"
io.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

宏定义

#define INC_IO_H
 [p13#25] Input and output. 更多...
 
#define wopenout   a_open_out
 [p14#27] open a file for output. 更多...
 
#define TERM_IN   stdin
 [#32] the terminal as an input file. 更多...
 
#define TERM_OUT   stdout
 [#32] the terminal as an output file. 更多...
 
#define TERM_ERR   stderr
 错误输出到 stderr 更多...
 
#define update_terminal()   fflush(TERM_OUT)
 [#34] empty the terminal output buffer. 更多...
 
#define clear_terminal()
 [#34] clear the terminal input buffer. 更多...
 
#define FORMAT_DEFAULT_LENGTH   20
 [#520] length of the TEX format default string. 更多...
 
#define formatarealength   11
 
#define formatextlength   4
 
#define formatextension   S(256)
 [p190#520] .fmt, the extension, as a constant. 更多...
 

函数

Boolean inputln (FILE *f, Boolean bypass_eoln)
 [#31] inputs the next line or returns false. 更多...
 
Boolean initterminal (void)
 [#37] gets the terminal input started. 更多...
 
int PASCAL_MAIN (int argc, char **argv)
 
Boolean initinc (int _not_use_)
 
Boolean open_fmt (FILE **fmt)
 [#524] 更多...
 
void fix_date_and_time (Integer *p_time, Integer *p_day, Integer *p_month, Integer *p_year)
 [p97#241] establishes the initial values of the date and time. 更多...
 
Boolean a_open_in (FILE **f)
 
Boolean a_open_out (FILE **f)
 
void aclose (FILE **f)
 
void w_close (FILE **f)
 
void fname_init ()
 [ #511. File names. ] 更多...
 
StrNumber b_make_name_string ()
 
StrNumber w_make_name_string ()
 
void scan_file_name (void)
 [#526] 更多...
 
void print_file_name (StrNumber n, StrNumber a, StrNumber e)
 [#518] 更多...
 
void pack_file_name (StrNumber fname, StrNumber prefix, StrNumber ext)
 [#519] 打包文件名. 更多...
 
void pack_job_name (StrNumber s)
 [#529] s = ".log" , ".dvi" , or format extension. 更多...
 
void prompt_file_name (StrNumber s, StrNumber e)
 [#530] 更多...
 
void open_log_file (void)
 [#534] 更多...
 
void start_input (void)
 [#p195#537] TeX will \input something. 更多...
 

变量

Char name_of_file [FILE_NAME_SIZE+1]
 [#26]: on some systems this may be a record variable. 更多...
 
UInt16 namelength
 [#26]: this many characters are actually relevant in name_of_file (the rest are blank). 更多...
 
ASCIICode buffer [BUF_SIZE+1]
 [#30]: lines of characters being read 更多...
 
UInt16 first
 [#30]: the first unused position in buffer. [0, BUF_SIZE=5000] 更多...
 
UInt16 last
 [#30]: end of the line just input to buffer. [0, BUF_SIZE=5000] 更多...
 
UInt16 max_buf_stack
 [#30]: largest index used in buffer. [0, BUF_SIZE=5000] 更多...
 
Boolean need_to_load_format
 
StrNumber cur_name
 [#512] name of file just scanned. 更多...
 
StrNumber cur_area
 
StrNumber cur_ext
 
Boolean name_in_progress
 [#527] is a file name being scanned? xref: scan_file_name, newfont, expand 更多...
 
StrNumber job_name
 [#527] principal file name. 更多...
 
Boolean log_opened
 [#527] has the transcript file been opened? 更多...
 
StrNumber output_file_name
 [#532] full name of the output file. 更多...
 
StrNumber log_name
 

宏定义说明

◆ INC_IO_H

#define INC_IO_H

[p13#25] Input and output.

函数说明

◆ a_open_in()

Boolean a_open_in ( FILE **  f)

◆ a_open_out()

Boolean a_open_out ( FILE **  f)

◆ initinc()

Boolean initinc ( int  _not_use_)

◆ open_fmt()

Boolean open_fmt ( FILE **  fmt)

[#524]

◆ PASCAL_MAIN()

int PASCAL_MAIN ( int  argc,
char **  argv 
)

变量说明

◆ cur_area

StrNumber cur_area

◆ cur_ext

StrNumber cur_ext

◆ log_name

StrNumber log_name

◆ need_to_load_format

Boolean need_to_load_format
extern