summaryrefslogtreecommitdiff
path: root/libmisc
AgeCommit message (Collapse)Author
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
2024-12-08w5500: Add DEBUG loggingLuke T. Shumaker
2024-11-25libmisc: Fix an error messageLuke T. Shumaker
2024-11-23Use C23 (C++11) attribute syntax instead of __attribute__Luke T. Shumaker
2024-11-23libmisc: Logging/assert fixesLuke T. Shumaker
2024-11-19Add libmisc/log.h to remove stdio.hLuke T. Shumaker
2024-11-19libmisc: assert: Change global to be staticLuke T. Shumaker
2024-11-15Add tests to libmiscLuke T. Shumaker
2024-11-12Avoid using fprintfLuke T. Shumaker
2024-11-12Work on stack.c.genLuke T. Shumaker
2024-11-12Oh dang, I broke `make lint` a while back :(Luke T. Shumaker
2024-11-11Factor out libmisc/rand.hLuke T. Shumaker
2024-11-11libmisc: Write my own assert.h with assert_notreached()Luke T. Shumaker
2024-10-29Add a way to make private object membersLuke T. Shumaker