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