Files
TransPyC/includes/stdio.vp
T
TermiNexus c3a43dfe76 refactor(includes): 标准库 extern 软关键字语法迁移 + _append_cstr O(1) 追加缓存
- 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))
2026-08-24 23:31:12 +08:00

12 lines
489 B
Plaintext

import t, c
extern def printf(fmt: t.CConst | str, *args) -> int
extern def fprintf(stream: bytes, fmt: t.CConst | str, *args) -> int
extern def sprintf(buf: bytes, fmt: t.CConst | str, *args) -> int
extern def snprintf(buf: bytes, size: t.CSizeT, fmt: t.CConst | str, *args) -> int
extern def puts(s: t.CConst | str) -> int
extern def fputs(s: t.CConst | str, stream: bytes) -> int
extern def fgets(buf: bytes, size: int, stream: bytes) -> bytes
extern def fflush(stream: bytes) -> int