TeX in C
Explore TeX with modern c compiler.
|
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
结构体 | |
struct | TwoHalves |
[p43#113]: TwoHalves(64) . 更多... | |
struct | FourQuarters |
[p43#113]: FourQuarters(64) . 更多... | |
union | MemoryWord |
[p43#113]: MemoryWord(64) . 更多... | |
宏定义 | |
#define | INC_TEX_TYPES |
tex 相关的类型 更多... | |
类型定义 | |
typedef bool | Boolean |
布尔类型定义 更多... | |
typedef double | Real |
Real::double(64) . 更多... | |
typedef uint8_t | UChar |
UChar(8) = [0, 255] 更多... | |
typedef UChar | Char |
Char(8) = [0, 255] 更多... | |
typedef int8_t | SChar |
SChar(8) = [−127, +127] 更多... | |
typedef int64_t | Integer |
Integer(64) = \( [−2^{64}, 2^{64}) \) 更多... | |
typedef uint64_t | UInteger |
UInteger(64) = \( [0, 2^{64}) \) . 更多... | |
typedef size_t | Pointer |
Pointer::size_t(64) , a flag or a location in mem or eqtb. 更多... | |
typedef int16_t | Int16 |
Int16(16) = \( [-2^{15}, 2^{15}) \) 更多... | |
typedef uint16_t | UInt16 |
UInt16(16) = \( [0, 2^{16}) \) = [0, 65536) 更多... | |
typedef UChar | EightBits |
[#25]: EightBits::UChar(8) = [0, 255] 更多... | |
typedef UChar | PackedASCIICode |
#38: PackedASCIICode::UChar(8) = [0, 255] 更多... | |
typedef Integer | Scaled |
[p38#101]: Scaled::Integer(64) = \( [−2^{64}, 2^{64}) \) we need Pascal's Integer(32/64) , dependent upon the bit size of the target machine . 更多... | |
typedef UInteger | NonNegativeInteger |
[p38#101]: NonNegativeInteger::UInteger(64) = \( [0, 2^{64}) \) only need: (31bit)[0, 2^31) . 更多... | |
typedef UChar | SmallNumber |
[p38#101]: SmallNumber::UChar(8) = [0, 255] only need: (6bit)[0, 63] . 更多... | |
typedef Real | GlueRatio |
one-word representation of a glue expansion factor. 更多... | |
typedef uint16_t | QuarterWord |
[p43#113]: QuarterWord(8=>16) . 更多... | |
typedef uint32_t | HalfWord |
[p43#113]: HalfWord(16=>32) . 更多... | |
typedef UChar | GlueOrd |
INFINITY to the 0, 1, 2, or 3 power. 更多... | |
typedef UChar | GroupCode |
#269: GroupCode(8) save level for a level boundary. 更多... | |
typedef Pointer | TriePointer |
an index into trie; [0, TRIE_SIZE=131000] . 更多... | |
typedef Pointer | HyphPointer |
an index into the ordered hash table; [0, HYPH_SIZE=307] . 更多... | |
#define INC_TEX_TYPES |
tex 相关的类型
typedef bool Boolean |
布尔类型定义
#269: GroupCode(8)
save level for a level boundary.
only need [0, MAX_GROUP_CODE] = [0, 16]
typedef Pointer HyphPointer |
an index into the ordered hash table; [0, HYPH_SIZE=307]
.
typedef int16_t Int16 |
Int16(16)
= \( [-2^{15}, 2^{15}) \)
typedef int64_t Integer |
Integer(64)
= \( [−2^{64}, 2^{64}) \)
typedef UInteger NonNegativeInteger |
[p38#101]: NonNegativeInteger::UInteger(64)
= \( [0, 2^{64}) \) only need: (31bit)[0, 2^31) .
typedef UChar PackedASCIICode |
#38: PackedASCIICode::UChar(8)
= [0, 255]
typedef size_t Pointer |
Pointer::size_t(64)
, a flag or a location in mem or eqtb.
typedef double Real |
Real::double(64)
.
[p38#101]: Scaled::Integer(64)
= \( [−2^{64}, 2^{64}) \) we need Pascal's Integer(32/64)
, dependent upon the bit size of the target machine .
typedef int8_t SChar |
SChar(8)
= [−127, +127]
typedef UChar SmallNumber |
[p38#101]: SmallNumber::UChar(8)
= [0, 255] only need: (6bit)[0, 63] .
typedef Pointer TriePointer |
an index into trie; [0, TRIE_SIZE=131000]
.
typedef uint8_t UChar |
UChar(8)
= [0, 255]
typedef uint16_t UInt16 |
UInt16(16)
= \( [0, 2^{16}) \) = [0, 65536)
typedef uint64_t UInteger |
UInteger(64)
= \( [0, 2^{64}) \) .