chore(comments): includes 头注释英文化(R11 收尾)

把 includes 下 64 个 .vp 的文件头注释(含 traceback.vp 第 13-427 行的整块文件级说明)以及 2 处漏网的正文中文注释(ast/lexer.vp、json/__writer.vp)与 1 处中文 docstring(memhub.vp)逐行译为英文;同步把 fltk/gen_ffi.py 的生成模板与其自身注释英文化,使重新生成仍为英文。

只改注释/文档串文字:行数与代码逐字节不变(骨架比对 140 文件漂移 0),运行时中文字符串字面量 305 处保持原样。验证:三重重编 SUCCESS(170.21s)+ 全量 77/77 顺序回归通过 + VET 编译 SUCCESS / --search-paths 7 条 exit 0。
This commit is contained in:
TermiNexus committed 2026-10-06 09:42:25 +08:00
1 parent 14ba84db8e
commit c0d56b127d
65 files changed
+744 -744

No files matched your search

+8 -8
View File
@@ -11,9 +11,9 @@ import memhub
# ============================================================
# requests/https.vp — HTTPS 客户端(openssl SSL/TLS + 证书核验)
# requests/https.vp - HTTPS client (openssl SSL/TLS + certificate verification)
#
# 与 requests(HTTP)同名 API,但走 TLS 并默认校验对端证书:
# Same API names as requests (HTTP), but over TLS and by default it verifies the peer certificate:
# import requests.https as rhttps
# resp = rhttps.get("https://example.com/", verify=True)
# if resp is not None:
@@ -21,12 +21,12 @@ import memhub
# print(resp.text)
# requests.release(resp)
#
# 说明:
# - verify=True 时校验证书链 + 主机名(hostname 校验 SSL_set1_host),
# 提供 ca_file 指向 PEM CA bundle;不提供则走系统默认路径
# (Windows 上通常为空,真实站点会因"无法验证证书链"失败返回 None)。
# - 失败时返回 None,可用 last_error() 获取原因文本。
# - 握手成功后可用 last_tls_info() 查看 TLS 版本 / 加密套件 / 对端证书主题。
# Notes:
# - with verify=True it verifies the certificate chain + hostname (hostname check via SSL_set1_host),
# provide ca_file pointing to a PEM CA bundle; if not provided it uses the system default path
# (on Windows this is usually empty, so real sites fail with "unable to verify certificate chain" and return None).
# - on failure returns None; use last_error() to get the reason text.
# - after a successful handshake, use last_tls_info() to view the TLS version / cipher suite / peer certificate subject.
# ============================================================
define HTTPS_PORT = 443