支持 tls 关键字,全面准备清退 t, c
This commit is contained in:
1 parent
6e17716a69
commit
3242560d02
74 files changed
+524
-576
No files matched your search
@@ -1,7 +1,5 @@
|
||||
import t, c
|
||||
from stdint import *
|
||||
import stdio
|
||||
import stdlib
|
||||
import memhub
|
||||
import sys
|
||||
import win32.win32console as win32cmd
|
||||
@@ -33,7 +31,7 @@ def repl_abort() -> int:
|
||||
return 0
|
||||
|
||||
|
||||
def set_repl_jmpbuf(buf: t.CPtr) -> int:
|
||||
def set_repl_jmpbuf(buf: rawptr) -> int:
|
||||
"""Register the REPL jmp_buf; idempotent at each fragment entry."""
|
||||
global _repl_jmpbuf
|
||||
_repl_jmpbuf = buf
|
||||
@@ -196,7 +194,7 @@ log: Logger*
|
||||
def init_logger():
|
||||
"""Initialize the global logger instance."""
|
||||
global logger, log
|
||||
raw: t.CPtr = _mbuddy.alloc(Logger.__sizeof__())
|
||||
raw: rawptr = _mbuddy.alloc(Logger.__sizeof__())
|
||||
# if raw is None: return None (memory management still unclear)
|
||||
logger = raw
|
||||
logger.__before_init__()
|
||||
|
||||
Reference in new issue
Block a user