libtoml fork that uses tlibc
Go to file
2025-11-10 10:42:13 +05:00
.vscode fixed some warnings 2025-11-10 01:15:18 +05:00
dependencies replaced TomlString with StringBuilder 2025-11-10 05:42:29 +05:00
include/tlibtoml removed libtoml allocator 2025-11-10 10:42:13 +05:00
src removed libtoml allocator 2025-11-10 10:42:13 +05:00
tests replaced TomlTable with HashMap 2025-11-10 10:31:47 +05:00
.gitignore project created 2025-11-09 23:47:51 +05:00
project.config project created 2025-11-09 23:47:51 +05:00
project.config.user.default project created 2025-11-09 23:47:51 +05:00
README.md project created 2025-11-09 23:47:51 +05:00
tlibtoml.config project created 2025-11-09 23:47:51 +05:00

tlibtoml

A fork of libtoml rewritten to use tlibc instead of its own (worse) implementation of collections and strings. For example, Table from libtoml is just an array of key-value pairs, where search happens by calling strcmp() on each element. Such inefficient code hurts my mind, so i have no other choise than to rewrite this library.

Build

  1. Clone the repository.
    git clone https://timerix.ddns.net/git/Timerix/tlibtoml.git
    
  2. Install cbuild.
  3. Clone tlibc. By default dependencies/tlibc.config expects that tlibc/ is present in the same directory as tlibtoml/. If you cloned it to another directory, change DEPENDENCIES_DIR in tlibtoml/project.user.config.
    git clone https://timerix.ddns.net/git/Timerix/tlibc.git
    
  4. Build and run tests
    cd tlibtoml
    cbuild build_exec exec
    
  5. To build library use tasks build_static_lib[_dbg] or build_shared_lib[_dbg]