summaryrefslogtreecommitdiff
path: root/libmisc
AgeCommit message (Collapse)Author
3 daysTidy some whitespaceLuke T. Shumaker
3 daysFix some funny indentsLuke T. Shumaker
3 daysSort+align #includesLuke T. Shumaker
3 daysPull UTF-8 decoding into libmisc/utf8.cLuke T. Shumaker
5 daysBegone with the printf variants of the log functionsLuke T. Shumaker
5 dayslibmisc: Remove uses of printfLuke T. Shumaker
5 dayslibmisc: log.h: Add support for libmisc/fmt.h printingLuke T. Shumaker
5 dayslibmisc: Invent fmt.h to replace printfLuke T. Shumaker
5 dayslibmisc: _intercept.h: Have __lm_printf return size_t instead of intLuke T. Shumaker
5 dayslibmisc: macro.h: Add LM_FOREACH_PARAMLuke T. Shumaker
5 dayslibmisc: macro.h: Tidy and test LM_FOREACH_TUPLELuke T. Shumaker
8 daysMore GCC 15 fixesLuke T. Shumaker
8 dayslibmisc: macro.h: Add LM_PARTIAL_SWITCH, use itLuke T. Shumaker
14 daysMerge libobj into libmiscLuke T. Shumaker
14 daysDrop -fplan9-extensionsLuke T. Shumaker
14 daysUse static_assert to force semicolons, instead of empty structsLuke T. Shumaker
14 daysUse C23Luke T. Shumaker
This gives us: - [[maybe_unused]] instead of [[gnu::unused]] - bool/true/false are predefined, so no need for <stdbool.h>
14 dayslibmisc: log.h: Add a "log_" prefix to errorf/infof/debugfLuke T. Shumaker
2025-04-18Tidy `do { ... } while (0)` macrosLuke T. Shumaker
2025-04-18libmisc: LM_ARRAY_LEN: Compiler-error if not arrayLuke T. Shumaker
2025-04-15libmisc: Add alloc.h to help detect wrong alloc sizesLuke T. Shumaker
Lo and behold, there was a mistake in chan.c.
2025-04-15libmisc: Rework linkedlist to be non-intrusiveLuke T. Shumaker
2025-04-15libmisc: Tidy linkedlist.hLuke T. Shumaker
2025-04-12Replace lib9p map with a libmisc heap-allocated mapLuke T. Shumaker
Turns out using static buffers makes it hard to detect "use-after-free" problems and leaks.
2025-04-11libmisc: LM_CAST_FIELD_TO_STRUCT: Allow the pointer to be NULLLuke T. Shumaker
2025-04-11libmisc: Add LM_CAST_FIELD_TO_STRUCT, don't require lm_[ds]ll_node to be firstLuke T. Shumaker
2025-04-11Move the linkedlist to libmiscLuke T. Shumaker
2025-04-07fixup! SYSTEM headers don't get strict GCC checks, so change them to PUBLICLuke T. Shumaker
2025-04-07fixup! libobj, libmisc/private.h: Allow+force semicolonsLuke T. Shumaker
2025-04-05SYSTEM headers don't get strict GCC checks, so change them to PUBLICLuke T. Shumaker
2025-04-05libobj, libmisc/private.h: Allow+force semicolonsLuke T. Shumaker
2025-04-02Add libfmt to bypass output buffering for libmisc:assertLuke T. Shumaker
2025-04-02lib9p: Split internal.h up, rename some CONFIG symbolsLuke T. Shumaker
2025-03-09libmisc: log.c: Clean up #includesLuke T. Shumaker
2025-02-26libmisc: macro.h: Add LM_FLOORLOG2Luke T. Shumaker
2025-02-26libmisc: private.h: Add IS_IMPLEMENTATION_FOR(name) for use with LM_IFLuke T. Shumaker
2025-02-26libmisc: macro.h: Add LM_ROUND_DOWNLuke T. Shumaker
2025-02-23Complete TODO comments and documentationLuke T. Shumaker
2025-02-20libmisc: macro.h: Fix LM_NEXT_POWER_OF_2(0)Luke T. Shumaker
Apparently __builtin_clzll(0) is undefined.
2025-02-09libmisc: Drop vcall.hLuke T. Shumaker
2025-02-09libmisc: macro.h: Add utilities for tuplesLuke T. Shumaker
2025-02-04libmisc: log.h: Allow using n_* in headers without LOG_NAMELuke T. Shumaker
2025-01-19libmisc: endian.h: Add 64-bit versionsLuke T. Shumaker
2024-12-26Build the full matrix of CMAKE_BUILD_TYPELuke T. Shumaker
2024-12-26libmisc: test_rand: Avoid divide-by-zero, even if its result is ignoredLuke T. Shumaker
2024-12-26libmisc: Rework how test-intercepts workLuke T. Shumaker
2024-12-26libmisc: Check that assert.h has no depsLuke T. Shumaker
2024-12-13Add some tests for LM_NEXT_POWER_OF_2Luke T. Shumaker
2024-12-13Gather macros into libmisc/macro.hLuke T. Shumaker
2024-12-09libhw: Separate w5500_ll.h logging from w5500.c loggingLuke T. Shumaker