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

浏览源代码.

宏定义

#define INC_PRINT
 print 输出相关函数 . 更多...
 

枚举

enum  Selector {
  NO_PRINT = 16 , TERM_ONLY , LOG_ONLY , TERM_AND_LOG ,
  PSEUDO = 20 , NEW_STRING = 21 , MAX_SELECTOR = NEW_STRING
}
 [p24#54]: selector possible settings. 更多...
 

函数

void println (void)
 [p25#57]: 输出换行 . 更多...
 
void print_char (ASCIICode s)
 [p25#58]: 输出单个 ASCII 字符 . 更多...
 
void print (StrNumber s)
 [p26#59]: prints string s . 更多...
 
void printnl (StrNumber s)
 [#62]: prints string s at beginning of line. 更多...
 
void print_esc (StrNumber s)
 [#63]: prints escape character, then s . 更多...
 
void print_the_digs (EightBits k, char dig[])
 [#64]: prints dig[k − 1]...dig[0] . 更多...
 
void print_int (Integer n)
 [#65]: prints an integer in decimal form. 更多...
 
void print_two (Integer n)
 [#69]: 打印两位数字 (0 <= n <= 99). 更多...
 
void print_hex (Integer n)
 [#67]: 打印十六进制的非负整数 (n >= 0). 更多...
 
void print_roman_int (Integer n)
 [#69]: 打印罗马数字 . 更多...
 
void term_input (void)
 [#70] print_current_string in str.c . 更多...
 
void print_mod_init ()
 help fucntions 更多...
 
void newline_or_space (size_t len)
 Choose add newline or space based on the length to be printed. 更多...
 
void print_str (Str s)
 
void printnl_str (Str s)
 
void print_esc_str (Str s)
 
void begin_pseudo_print (char *l)
 [#316] 更多...
 
void set_trick_count ()
 [#316] 更多...
 

变量

FILE * log_file
 transcript of TeX session. 更多...
 
Selector selector
 where to print a message. 更多...
 
Integer tally
 the number of characters recently printed. 更多...
 
ASCIICode trick_buf [ERROR_LINE+1]
 circular buffer for pseudoprinting. 更多...
 
Integer trick_count
 threshold for pseudoprinting, explained later. 更多...
 
Integer first_count
 another variable for pseudoprinting. 更多...
 

宏定义说明

◆ INC_PRINT

#define INC_PRINT

print 输出相关函数 .

函数说明

◆ newline_or_space()

void newline_or_space ( size_t  len)

Choose add newline or space based on the length to be printed.

used by:

  • [p195#537] start_input;
  • [p236#638] shipout;
  • [p451#1279/1280] issuemessage;

◆ print_esc_str()

void print_esc_str ( Str  s)

◆ print_mod_init()

void print_mod_init ( )

help fucntions

init global var

◆ print_str()

void print_str ( Str  s)

◆ printnl_str()

void printnl_str ( Str  s)