去除 import t, c
This commit is contained in:
1 parent
579cf8d8e0
commit
e67b80c083
112 files changed
+1235
-1347
No files matched your search
@@ -1,4 +1,3 @@
|
||||
import t, c
|
||||
from stdint import *
|
||||
import stdio
|
||||
import stdlib
|
||||
@@ -86,9 +85,9 @@ def main() -> int:
|
||||
w: uint64 = 0
|
||||
pw: uint64* = &w
|
||||
*pw = 0x1234
|
||||
blk: t.CPtr = t.CPtr(uint64(pw))
|
||||
blk: rawptr = rawptr(uint64(pw))
|
||||
hd1: uint64 = *((uint64*)(blk))
|
||||
hd2: uint64 = uint64(t.CPtr(*((uint64*)(blk))))
|
||||
hd2: uint64 = uint64(rawptr(*((uint64*)(blk))))
|
||||
if hd1 != 0x1234:
|
||||
stdio.printf("FAIL I1 直接读块头 : hd1=0x%llX(期望 0x1234)\n", hd1)
|
||||
fails += 1
|
||||
|
||||
Reference in new issue
Block a user