Skip to content

stdx-v0.1

Latest

Choose a tag to compare

@marciovmf marciovmf released this 08 Dec 12:05

STDX v0.1

Core Infrastructure

stdx_common

Foundational portability layer. Provides compiler/OS detection, attributes, assertions, bit utilities, typedefs, path/macros, and the XPtr tagged pointer result type.

stdx_time

Cross-platform high-resolution timing API (XTimer) with duration arithmetic, conversions, and sleeping helpers.

stdx_cpuid

Cross-platform CPU information and feature detection.


Memory & Data Structures

stdx_arena

Fast bump allocator with chunked growth, zero-fill helpers, mark/rewind snapshots, trimming, and arena-based string duplication.

stdx_array

Generic dynamic array backed by contiguous memory. Automatic growth, push/pop, range insert/remove, random access, and error signaling via XPtr.

stdx_hashtable

Generic hash map using open addressing and tombstones. Supports user-defined key/value behaviors, automatic resizing, and built-in helpers for C strings.


Text, Strings & File Formats

stdx_string

General-purpose string utilities. Includes XSlice, XSmallstr, UTF-8 helpers, prefix/suffix operations, ASCII case transforms, and conversion between UTF-8 and wide strings.

stdx_strbuilder

Dynamic string builder for efficient concatenation. UTF-8 and wide-string variants with formatting, substring append, and automatic buffer growth.

stdx_ini

Minimal INI loader with string interning and flat section/entry arrays. Simple, fast configuration parsing without complex data structures.


System & Platform Utilities

stdx_filesystem

Cross-platform filesystem helpers: path manipulation, directory walking, file and directory creation/deletion, file metadata, symlinks, temp files, and file watching.

stdx_network

Abstracted networking over Windows and POSIX sockets. TCP/UDP, IPv4/IPv6, blocking/non-blocking, polling, DNS resolution, multicast, broadcast, and adapter enumeration.

stdx_io

Thin I/O wrapper around FILE*. Consistent open/close/read/write APIs, whole-file read/write helpers, and seek/tell utilities.

stdx_thread

Portable threading and synchronization: thread creation/join, mutexes, condition variables, sleep/yield, and a compact thread pool implementation.


Diagnostics & Tooling

stdx_log

Configurable logging with levels, timestamps, tags, color output (ANSI/Win32), and file/console targets.

stdx_test

Minimal unit testing framework with assertions, timing, colored output, and crash reporting via signal handlers.