tbox
tbox copied to clipboard
🎁 A glib-like multi-platform c library
### Is your feature request related to a problem? Please describe. no, just cgi with c ### Describe the solution you'd like use tbox to write simple cgi programs in...
> 注:提问题时若使用`不能用/没效果/有问题/报错`此类模糊表达,但又没有根据下面的模板给出任何相关辅助信息的,将绝对不会有任何反馈。 ### 描述问题 我使用如下的 json 串解码,得到的 confidence 字段一个是0.000000,另一个是0.750000。都不对。 _[{"confidence":0.974220335483551,"text":"lenovo联想","text_region":[[191,80],[672,80],[672,148],[191,148]]},{"confidence":0.6968730688095093,"text":"BY:花享湖月","text_region":[[250,866],[332,866],[332,885],[250,885]]}]_ ### 期待的结果 如果是 debug 希望老大处理一下,如果是我使用错误,请老大指正一下。 ### 错误信息 我以为是中文的问题,但我转换为 \uxxxx 格式后提示我需要重新编译启用 unicode 支持,那不是就说明不是中文的问题 ### 相关环境 xmake v2.6.4+dev.35fa885 tbox master ### 其他信息...
> 注:提问题时若使用`不能用/没效果/有问题/报错`此类模糊表达,但又没有根据下面的模板给出任何相关辅助信息的,将绝对不会有任何反馈。 ### 描述问题 看源码注释是:TB_OPTION_MODE_KEY_VAL = 3 //!< --key=value or --key value or -k=value or -k value 但经过我测试只有 --key=value 和 -k=value 才行,另外两个不行! 我代码中的选项定义是这样的: `c {'c', "config", TB_OPTION_MODE_KEY_VAL, TB_OPTION_TYPE_CSTR, "配置文件路径,支持 json/xml...
tbox协程支持自定义调度吗,目前只看到通过tb_lo_coroutine_start()接口创建匿名协程并与schedule绑定,并且尚未看到如何使用tb_lo_coroutine_resume进行协程的自定义切换。 此外,多线程中若通过tb_lo_coroutine_start()接口在同一个schedule内创建协程,是否非线程安全?
Hi, thanks for nice work. I browsed through library and seems interesting. Is there some embedded project which using this library? I'm in process of define and write some generic...
### 描述问题 NPX系列 IMX.8 Linux中进行交叉编译,无法完成。 ### 期待的结果 能顺利完成tbox IMX.8交叉编译。 ### 错误信息  error: ...mdir/core/sandbox/modules/import/core/base/scheduler.lua:56: cannot find known tool script for aarch64-poky-linux-gcc -mcpu=cortex-a35+crc+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux stack traceback:...
### Is your feature request related to a problem? Please describe. I would like to have a radix sort in the library https://rosettacode.org/wiki/Sorting_algorithms/Radix_sort#C ### Describe the solution you'd like Some...
### Is your feature request related to a problem? Please describe. I as a newcomer could not find any performance benchmark compared to other common libraries (musl, uclibc, glib, etc.)...
### tb_string_cstrfcat 输出浮点数Bug. 输出浮点数,显示有乱码. 代码如下 ``` c double t_HUGE_VAL = HUGE_VAL; double t_HUGE_VALF = HUGE_VALF; double t_HUGE_VALL = HUGE_VALL; double t_NAN = NAN; double x = 2318931208301238129083120832190.12212; printf("%lf\n",t_HUGE_VALF); printf("%lf\n",t_HUGE_VAL); printf("%lf\n",t_HUGE_VALL);...
增强日志功能
目前tbox的日志功能感觉比较弱,希望提供以下功能: 1.支持日志文件的转储,可以按照天,或者按照文件大小转储 2.支持自动删除日志文件,比如配置最多10个日志文件,超过之后可以自动删除旧的日志文件 3.支持输出到多个日志文件,比如一个程序中可以配置不同的模块输出到不同的文件