l0n0lc 0.10.0__py3-none-any.whl → 0.10.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- l0n0lc/c/345/237/272/347/241/200/345/244/204/347/220/206.py +4 -8
- {l0n0lc-0.10.0.dist-info → l0n0lc-0.10.1.dist-info}/METADATA +1 -1
- {l0n0lc-0.10.0.dist-info → l0n0lc-0.10.1.dist-info}/RECORD +6 -6
- {l0n0lc-0.10.0.dist-info → l0n0lc-0.10.1.dist-info}/WHEEL +0 -0
- {l0n0lc-0.10.0.dist-info → l0n0lc-0.10.1.dist-info}/licenses/LICENSE +0 -0
- {l0n0lc-0.10.0.dist-info → l0n0lc-0.10.1.dist-info}/top_level.txt +0 -0
@@ -3,10 +3,6 @@ from .通用 import 生成变量Id, toCString, 通用信息
|
|
3
3
|
import ctypes
|
4
4
|
|
5
5
|
|
6
|
-
def cpp获取变量类型(v):
|
7
|
-
return f'decltype({v})'
|
8
|
-
|
9
|
-
|
10
6
|
class cpp类型:
|
11
7
|
INT8_T = 'int8_t'
|
12
8
|
INT16_T = 'int16_t'
|
@@ -54,11 +50,11 @@ def py类型转ctypes类型(类型):
|
|
54
50
|
ret = 执行额外函数(额外py转ctypes函数, 类型)
|
55
51
|
if ret is not None:
|
56
52
|
return ret
|
57
|
-
|
53
|
+
|
58
54
|
ret = 通用信息.类型映射表.get(类型)
|
59
55
|
if ret is not None:
|
60
56
|
return ret.对应的ctypes类型
|
61
|
-
|
57
|
+
|
62
58
|
return py2ctypes映射表.get(类型)
|
63
59
|
|
64
60
|
|
@@ -207,8 +203,8 @@ class c变量:
|
|
207
203
|
return self.c名字
|
208
204
|
|
209
205
|
@property
|
210
|
-
def
|
211
|
-
return
|
206
|
+
def decltype(self):
|
207
|
+
return f'decltype({self})'
|
212
208
|
|
213
209
|
def 初始化(self, 初始值, 强转类型: str | None = None):
|
214
210
|
if 强转类型:
|
@@ -1,12 +1,12 @@
|
|
1
1
|
l0n0lc/StdList.py,sha256=0NTIpaRrNHaCiLrRbEVob21pZHa8S8rfaBRALPT-tD0,889
|
2
2
|
l0n0lc/StdMap.py,sha256=997LCvP0ewNciabbmGHVL2eUgMakHBsR3c5HQmOwC_E,666
|
3
3
|
l0n0lc/__init__.py,sha256=fUC6TMeN_fEL7HDazrBEdoWOQkXi5uSGZb7LZj6juog,137
|
4
|
-
l0n0lc/c基础处理.py,sha256=
|
4
|
+
l0n0lc/c基础处理.py,sha256=x3ldsG4bQTYfqtrqYgDnn-r936GZCOzB8ZK8e6XseRo,5896
|
5
5
|
l0n0lc/jit.py,sha256=kWg0WNffARhpg-heih4zGsDiFY_mBrSqg4OrZ73zoH0,27362
|
6
6
|
l0n0lc/编译.py,sha256=A9FUV95cVD7Fz7vlKhbqE9CsjpixpdqWQxq1h8e4DBw,2262
|
7
7
|
l0n0lc/通用.py,sha256=ckCW4Sz3IVsIIctoUGA55j_IZrcZQdtH7VXWS3Uh1Dk,4789
|
8
|
-
l0n0lc-0.10.
|
9
|
-
l0n0lc-0.10.
|
10
|
-
l0n0lc-0.10.
|
11
|
-
l0n0lc-0.10.
|
12
|
-
l0n0lc-0.10.
|
8
|
+
l0n0lc-0.10.1.dist-info/licenses/LICENSE,sha256=1L-MAjulZ3kpbYwsJtlXpDVITRxykna2Ecg_521YfkA,1093
|
9
|
+
l0n0lc-0.10.1.dist-info/METADATA,sha256=3dvsE0Gse9aSVV5UTn4K4MG2LVqkKgK4MbhPX_Y9WpY,12863
|
10
|
+
l0n0lc-0.10.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
11
|
+
l0n0lc-0.10.1.dist-info/top_level.txt,sha256=Q21D_eEY_-xgRUPwATGp9YDKSBO4w_7MI2MYxQI1aT4,7
|
12
|
+
l0n0lc-0.10.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|