Code Monkey home page Code Monkey logo

lolly's People

Contributors

charonxin avatar darcy-shen avatar jingkaimori avatar paradisuman avatar tangdouer1005 avatar yuanmxc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lolly's Issues

Can't use curl in mogan.

Lolly 版本

v1.1.3

操作系统版本和架构

ubuntu22.04

描述问题

error: /usr/bin/ld: /home/charon/.xmake/packages/l/lolly/v1.1.3/bbd3cb71d3ad4289a32065b2358871f3/lib/liblolly.a(curl.cpp.o): in function `curl_get(string, string)':
curl.cpp:(.text+0x86): undefined reference to `curl_easy_init'
/usr/bin/ld: curl.cpp:(.text+0x1a2): undefined reference to `curl_easy_setopt'
/usr/bin/ld: curl.cpp:(.text+0x1cb): undefined reference to `curl_easy_setopt'
/usr/bin/ld: curl.cpp:(.text+0x1e5): undefined reference to `curl_easy_setopt'
/usr/bin/ld: curl.cpp:(.text+0x220): undefined reference to `curl_easy_setopt'
/usr/bin/ld: curl.cpp:(.text+0x247): undefined reference to `curl_easy_setopt'
/usr/bin/ld: /home/charon/.xmake/packages/l/lolly/v1.1.3/bbd3cb71d3ad4289a32065b2358871f3/lib/liblolly.a(curl.cpp.o):curl.cpp:(.text+0x262): more undefined references to `curl_easy_setopt' follow
/usr/bin/ld: /home/charon/.xmake/packages/l/lolly/v1.1.3/bbd3cb71d3ad4289a32065b2358871f3/lib/liblolly.a(curl.cpp.o): in function `curl_get(string, string)':
curl.cpp:(.text+0x26e): undefined reference to `curl_easy_perform'
/usr/bin/ld: curl.cpp:(.text+0x27d): undefined reference to `curl_easy_cleanup'
collect2: error: ld returned 1 exit status

期待的结果

是不是要include <curl/easy.h> 这个头文件

Convert type to a fixed-size integer type

Is your feature request related to a problem? Please describe.

#141

Describe the solution you'd like

Convert data to a fixed-size integer type

Describe alternatives you've considered

No response

Additional context

In cross-platform testing, we have found that inconsistent byte sizes often lead to many issues. For example, 'long' may be four bytes on many platforms, while on other platforms, it may be eight bytes. As a C++ standard library, Lolly should be able to maintain consistency in the byte lengths of various variables at the low level.

tm_ostream opened with file is not tested

Lolly Version

master

Operating System Version and Architecture

Windows 22H2

Describe Bug

All tests in tm_ostream_test.cpp build a stream writing to internal string, with no testcase writing into file.

Expected Behavior

  • test tm_ostream opened on file, or remove this feature;
  • test read and write on utf-8 filename
  • test interoperability between tm_ostream, load_string, and save_string

file not exist unit test will fail in the second run

Lolly Version

1.2.11

Operating System Version and Architecture

Ubuntu

Describe Bug

In the unit test file: tests/System/Files/file_test.cpp
The "file not exist" test should delete the created file "append_not_exist.txt", otherwise the unit test will fail if we run unit test twice

Expected Behavior

unit test should not fail no matter how many times it runs.

大数值转罗马数字出错

Lolly 版本

master

操作系统版本和架构

Windows 10 22H2

描述问题

目前lolly的roman_nr只能处理三千以下的数值,更大的数值需要采用ApostrophusVinculum两种涉及到特殊字符的记号,而输入int的最大值会导致lolly崩溃

期待的结果

  • 对于一万到十万数量级的输入,引入特殊符号,输出符合Apostrophus或Vinculum形式的结果
  • 对于百万数量级的大数,输出<unspecified>一类的字符,以指示转换失败。
  • 避免lolly崩溃。

package in xmake-repo should not build tests

Lolly Version

2.8.3

Operating System Version and Architecture

Windows 10 22H2

Describe Bug

Current package description in xmake-repo and in mogan build test targets when installing, wasting time only.

Expected Behavior

build lolly library only, without those libraries.

Memory leak on tm_ostream

Lolly Version

2.8.3

Operating System Version and Architecture

Windows 10 22H2

Describe Bug

tm_ostream add ref count manually, thus underlying representation will not be recycled. when exiting scope. Is this behavior intended?

Expected Behavior

no memory leak detected

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.