How gigores/betterstd works
BetterSTD is a general-purpose GNU C utility library, not an application with a single end-to-end workflow. A caller selects a library capability, invokes its C API, and receives a value, container, allocation, log output, or error result. The graph preserves the README’s major completed capabilities and the substantial container variants listed in the source index. Some implementation files were not excerpted; uncertain dependency edges are omitted or marked dashed rather than presented as verified calls.
Main entry points: json.c JSON · string.c UTF-8 string · string_view.c String view · error.c Error handling
Components 19
Memory
- Allocator API
src/allocator.c - Global allocator
src/global.c - Arena allocator
src/arena.c - Pool allocator
src/pool.c
Containers
- Borrowing array
src/balist.c - Borrowing list
src/bllist.c - Borrowing hash table
src/bhtable.c - Owning array
src/oalist.c - Owning list
src/ollist.c - Bit set
src/bit_set.c
Text and data
- UTF-8 string
src/string.c - String view
src/string_view.c - UTF-8 support
src/utf8.c - JSON
src/json.c
Runtime utilities
- Logging
src/logger.c - Error handling
src/error.c - Auto pointers
src/smart_pointers.c - Date and time
src/datetime.c
Other components
- C caller
Connections 24
- C caller → Logging: configures and logs
- C caller → Auto pointers: uses
- C caller → Allocator API: allocates
- C caller → Borrowing array: uses
- C caller → Borrowing list: uses
- C caller → Borrowing hash table: uses
- C caller → Owning array: uses
- C caller → Owning list: uses
- C caller → Bit set: uses
- C caller → UTF-8 string: uses
- C caller → String view: uses
- C caller → JSON: uses
- C caller → Date and time: uses
- C caller → Error handling: handles errors
- Pool allocator → Bit set: tracks blocks with
- UTF-8 string → Owning array: references
- UTF-8 string → String view: uses
- JSON → Borrowing hash table: references
- JSON → Borrowing list: references
- JSON → String view: references
- JSON → Global allocator: references
- UTF-8 string → UTF-8 support: references
- String view → UTF-8 support: references
- Error handling → Logging: references