Commit Graph

20 Commits (strings)

Author SHA1 Message Date
Avril ae6e40453d
`TRANSMUTE()`: Fix input type size not being properly checked.
3 years ago
Avril 87e102ded9 Added `TRANSMUTE(value, to_type)` macro, which performs a bit-cast on `value` to `to_type`. The sizes of the types must be the same or a compilation error is raised. There is currently no alignment restriction on the types (maybe there should be?).
3 years ago
Avril a826612de5
Replace `Nx()` (temp value-assigning) macros with `Nv()` to avoid conflict with `TRACEx()` and for more clarity.
3 years ago
Avril 267a4dae66 str_t impl: added alloc bare
3 years ago
Avril 152e0aa8e7
Start writing new string-slicing module.
3 years ago
Avril aa94ab1622
Failed string API attempt. Branching for rework.
3 years ago
Avril 0db8d882d0
Attempted rewrite of _display_get_fmt()`, it currently doesn"t work. To compile using the old functional but (probably) unsafe function, pass `-D_DEBUG_USE_UNSAFE_DISPLAY_FMT_ARGS` in `CFLAGS`.
3 years ago
Avril 1189d7fee8
Fix `TODO()` macro to allow for printf-style args like the other `TRACEx()`-derrived macros.
3 years ago
Avril 2ed48ec977
Added COLD_BLOCK and HOT_BLOCK (for now), not sure if they work but they"re added.
3 years ago
Avril 145781a293
Added COLD_EXPR() and HOT_EXPR() macros that (ab)use label attrs. Not sure of a better way to mark blocks/expressions as `cold` :/ I dunno if `if(UNLIKELY(1))` would work.
3 years ago
Avril 139d741bce
Allow controling logging verbosity at runtime with `LOG_LEVEL=<name>` env-var. Default is `DEBUG` (trace) on debug builds, and `WARN` on release builds.
3 years ago
Avril b0623182be
Added rollback to unmap previous haystack maps on error in `map_haystacks()` before returning.
3 years ago
Avril d9eed51762
Added non-TRACE info messages on needle+haystack un/mappings
3 years ago
Avril 254d9fbadc
Added `cmp_find()` `cmp_find_many()` in "comp.c"/"comp.h".
3 years ago
Avril 4dd4285ee0
Add IGNORE_ALL() as alias to _drain()
3 years ago
Avril 701601f5cd
added testing framework
3 years ago
Avril 672502449b
Moved string handling functions from version header into its own TU.
3 years ago
Avril fb2fa5801e
version to string functions `v_ctos{s,n,}()` working as intended
3 years ago
Avril d9ccfa0d89
added `bswap()` generic macro
3 years ago
Avril d8202d7994
Fortune for naka's current commit: Small blessing − 小吉
3 years ago