- posix/stdio 等 19 文件: def ... -> T|t.State: pass 改写为 extern def ... -> T - llvmlite/__builder.vp: _append_cstr 加写入位置缓存(_g_last_dst/_g_last_pos,缓冲切换/重置自动回退 strlen,防 O(n^2))
11 lines
296 B
Plaintext
11 lines
296 B
Plaintext
from stdint import *
|
|
import t
|
|
|
|
|
|
extern def malloc(size: t.CSizeT) -> t.CPtr
|
|
extern def calloc(nmemb: t.CSizeT, size: t.CSizeT) -> t.CPtr
|
|
extern def realloc(p: t.CPtr, size: t.CSizeT) -> t.CPtr
|
|
extern def free(p: t.CPtr)
|
|
extern def system(cmd: t.CConst | str) -> int
|
|
extern def exit(status: int)
|