From 7097dd6dcf10ce1f426f81557821813142959faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E7=91=97=E6=9D=B0?= <3695888@qq.com> Date: Sat, 30 Apr 2022 10:03:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=BA=86=E4=B8=80=E4=B8=8B=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=BB=93=E6=9E=84=EF=BC=8C=E9=A1=BA=E4=BE=BF=E5=BC=80?= =?UTF-8?q?=E5=A7=8B=E8=A7=84=E5=88=92=E6=95=B0=E6=8D=AE=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 +++ test/data.jl | 14 ++++++++++ try/c/data_types.c | 30 ++++++++++++++++++++++ try/{ => others}/check_config_check.config | 0 try/{ => others}/class_check.py | 0 try/{ => others}/crash_check.py | 0 try/{ => others}/decorators_check.py | 0 try/{ => others}/hit_box_check.py | 0 try/{ => others}/image_check.py | 0 try/{ => others}/import_check (2).py | 0 try/{ => others}/import_check_check.py | 0 try/{ => others}/linear_algebra_check.py | 0 try/{ => others}/logging_check.config | 0 try/{ => others}/logging_check.py | 0 try/{ => others}/logging_conf_check.py | 0 try/{ => others}/muti_window.py | 0 try/{ => others}/mutiproser_check.py | 0 try/{ => others}/openGL_check.py | 0 try/{ => others}/some_big_num.py | 0 try/{ => others}/sysstd.py | 0 try/{ => others}/threading_check.py | 0 try/{ => others}/tools_check.py | 0 try/{ => others}/奇怪的东西.py | 0 23 files changed, 48 insertions(+) create mode 100644 test/data.jl create mode 100644 try/c/data_types.c rename try/{ => others}/check_config_check.config (100%) rename try/{ => others}/class_check.py (100%) rename try/{ => others}/crash_check.py (100%) rename try/{ => others}/decorators_check.py (100%) rename try/{ => others}/hit_box_check.py (100%) rename try/{ => others}/image_check.py (100%) rename try/{ => others}/import_check (2).py (100%) rename try/{ => others}/import_check_check.py (100%) rename try/{ => others}/linear_algebra_check.py (100%) rename try/{ => others}/logging_check.config (100%) rename try/{ => others}/logging_check.py (100%) rename try/{ => others}/logging_conf_check.py (100%) rename try/{ => others}/muti_window.py (100%) rename try/{ => others}/mutiproser_check.py (100%) rename try/{ => others}/openGL_check.py (100%) rename try/{ => others}/some_big_num.py (100%) rename try/{ => others}/sysstd.py (100%) rename try/{ => others}/threading_check.py (100%) rename try/{ => others}/tools_check.py (100%) rename try/{ => others}/奇怪的东西.py (100%) diff --git a/.gitignore b/.gitignore index 9c2015c..e7f089c 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,10 @@ DR.code-workspace # PYCharm file .idea/ +# C .so .dll +*.so +*.dll + # log files logs/ diff --git a/test/data.jl b/test/data.jl new file mode 100644 index 0000000..82fd388 --- /dev/null +++ b/test/data.jl @@ -0,0 +1,14 @@ + + + +struct a_part + part_type :: String + part_id :: UInt64 + enable :: Bool + x :: Float64 + y :: Float64 + x_v :: Float64 + y_v :: Float64 + angle :: Float16 + angle_v :: Float64 +end \ No newline at end of file diff --git a/try/c/data_types.c b/try/c/data_types.c new file mode 100644 index 0000000..433454c --- /dev/null +++ b/try/c/data_types.c @@ -0,0 +1,30 @@ +#include +#include +// DR data types + +// 一些用于直观感受类型字节长度的数据类型 +// 看着舒服而已( +#define int8 char +#define int16 short +#define int32 int +#define int64 long long +#define uint8 unsigned char +#define uint16 unsigned short +#define uint32 unsigned int +#define uint64 unsigned long long +#define float32 float +#define float64 double + +struct part +{ + /* 一个 part 的数据格式 */ + long double a; + uint16 b; +}; + +int main(){ + long double a = 1.0; + // 输出 a 的字节长度 + printf("%o\n", sizeof(long double)); +} + diff --git a/try/check_config_check.config b/try/others/check_config_check.config similarity index 100% rename from try/check_config_check.config rename to try/others/check_config_check.config diff --git a/try/class_check.py b/try/others/class_check.py similarity index 100% rename from try/class_check.py rename to try/others/class_check.py diff --git a/try/crash_check.py b/try/others/crash_check.py similarity index 100% rename from try/crash_check.py rename to try/others/crash_check.py diff --git a/try/decorators_check.py b/try/others/decorators_check.py similarity index 100% rename from try/decorators_check.py rename to try/others/decorators_check.py diff --git a/try/hit_box_check.py b/try/others/hit_box_check.py similarity index 100% rename from try/hit_box_check.py rename to try/others/hit_box_check.py diff --git a/try/image_check.py b/try/others/image_check.py similarity index 100% rename from try/image_check.py rename to try/others/image_check.py diff --git a/try/import_check (2).py b/try/others/import_check (2).py similarity index 100% rename from try/import_check (2).py rename to try/others/import_check (2).py diff --git a/try/import_check_check.py b/try/others/import_check_check.py similarity index 100% rename from try/import_check_check.py rename to try/others/import_check_check.py diff --git a/try/linear_algebra_check.py b/try/others/linear_algebra_check.py similarity index 100% rename from try/linear_algebra_check.py rename to try/others/linear_algebra_check.py diff --git a/try/logging_check.config b/try/others/logging_check.config similarity index 100% rename from try/logging_check.config rename to try/others/logging_check.config diff --git a/try/logging_check.py b/try/others/logging_check.py similarity index 100% rename from try/logging_check.py rename to try/others/logging_check.py diff --git a/try/logging_conf_check.py b/try/others/logging_conf_check.py similarity index 100% rename from try/logging_conf_check.py rename to try/others/logging_conf_check.py diff --git a/try/muti_window.py b/try/others/muti_window.py similarity index 100% rename from try/muti_window.py rename to try/others/muti_window.py diff --git a/try/mutiproser_check.py b/try/others/mutiproser_check.py similarity index 100% rename from try/mutiproser_check.py rename to try/others/mutiproser_check.py diff --git a/try/openGL_check.py b/try/others/openGL_check.py similarity index 100% rename from try/openGL_check.py rename to try/others/openGL_check.py diff --git a/try/some_big_num.py b/try/others/some_big_num.py similarity index 100% rename from try/some_big_num.py rename to try/others/some_big_num.py diff --git a/try/sysstd.py b/try/others/sysstd.py similarity index 100% rename from try/sysstd.py rename to try/others/sysstd.py diff --git a/try/threading_check.py b/try/others/threading_check.py similarity index 100% rename from try/threading_check.py rename to try/others/threading_check.py diff --git a/try/tools_check.py b/try/others/tools_check.py similarity index 100% rename from try/tools_check.py rename to try/others/tools_check.py diff --git a/try/奇怪的东西.py b/try/others/奇怪的东西.py similarity index 100% rename from try/奇怪的东西.py rename to try/others/奇怪的东西.py