TeX in C
Explore TeX with modern c compiler.
charset.h
浏览该文件的文档.
1 #pragma once
2 #ifndef INC_CHARSET_H
4 #define INC_CHARSET_H
5 #include "global.h" // [type] UChar
6 
11 typedef UChar ASCIICode;
13 typedef UChar TextChar;
14 
16 #define FIRST_TEXT_CHAR 0
18 #define LAST_TEXT_CHAR 255
19 
21 #define NULL_CODE 0
23 #define CARRIAGE_RETURN '\r'
25 #define INVALID_CODE 127 // end group S17x24_P10x12
27 
28 
29 extern ASCIICode xord[256];
30 extern TextChar xchr[256];
31 extern void charset_init();
32 
33 #endif /* INC_CHARSET_H */
UChar ASCIICode
[#18]: ASCIICode::UChar(8) = [0, 255]
Definition: charset.h:11
void charset_init()
Definition: charset.c:13
TextChar xchr[256]
[#20] specifies conversion of output characters.
Definition: charset.c:10
UChar TextChar
[#19]: TextChar::UChar(8) = [0, 255]
Definition: charset.h:13
ASCIICode xord[256]
[#20] specifies conversion of input characters.
Definition: charset.c:8
uint8_t UChar
UChar(8) = [0, 255]
Definition: tex_types.h:38