summaryrefslogtreecommitdiff
path: root/include/al/lib.h
Commit message (Collapse)AuthorAge
* lib: Directly use _assert() functionsAndrew Opalach 2025-09-26
| | | | | | | | | Rather than the <assert.h> defined assert() macro that can change based on include order. As of now the build just checks for known implementation specific function names and assumes their signature. Obviously that is very fragile and should be improved in the future. Also add an AL_STATIC_ASSERT() macro. Signed-off-by: Andrew Opalach <andrew@akon.city>
* build: Option for asserts in release buildsAndrew Opalach 2025-09-08
| | | | | | | - Define NDEBUG in release builds. - loccount -> sloccount. Signed-off-by: Andrew Opalach <andrew@akon.city>
* lib: Define al_strncmpAndrew Opalach 2025-08-12
| | | | Signed-off-by: Andrew Opalach <andrew@akon.city>
* lib: Inline checking for NULL ptr in reallocAndrew Opalach 2025-06-23
| | | | Signed-off-by: Andrew Opalach <andrew@akon.city>
* (w)str: Fix str macrosAndrew Opalach 2025-06-11
| | | | Signed-off-by: Andrew Opalach <andrew@akon.city>
* build: Improve Windows supportAndrew Opalach 2025-05-25
| | | | Signed-off-by: Andrew Opalach <andrew@akon.city>
* lib: Fix build on newer Android NDKAndrew Opalach 2025-04-28
| | | | | | - Temporarily remove __counted_by definition. Signed-off-by: Andrew Opalach <andrew@akon.city>
* all: Revert and add some style changesAndrew Opalach 2025-03-31
| | | | Signed-off-by: Andrew Opalach <andrew@akon.city>
* lib: Implement strndupAndrew Opalach 2025-03-15
| | | | Signed-off-by: Andrew Opalach <andrew@akon.city>
* all: Consider types and numerical limitsAndrew Opalach 2025-01-17
| | | | | | | | | | - Vastly improve tests. - Change array/str/wstr APIs. - Use ptrdiff_t instead of size_t in ring buffer. - Make random seed thread-local. - Log now uses a static thread-local buffer instead of a malloc'd buffer. Signed-off-by: Andrew Opalach <andrew@akon.city>
* Revise styleAndrew Opalach 2024-12-26
| | | | Signed-off-by: Andrew Opalach <andrew@akon.city>
* lib: Attempt fix for al_assert_and_return()Andrew Opalach 2024-12-24
| | | | Signed-off-by: Andrew Opalach <andrew@akon.city>
* all: Major cleanup and pass on readabilityAndrew Opalach 2024-12-22
| | | | Signed-off-by: Andrew Opalach <andrew@akon.city>
* all: Cleanup macro usageAndrew Opalach 2024-11-26
| | | | Signed-off-by: Andrew Opalach <andrew@akon.city>
* lib: Cleanup no memory tracking caseAndrew Opalach 2024-11-03
| | | | Signed-off-by: Andrew Opalach <andrew@akon.city>
* all: Undo previous #ifdef style changeAndrew Opalach 2024-10-29
| | | | Signed-off-by: Andrew Opalach <andrew@akon.city>
* lib: Only use snprintf variantsAndrew Opalach 2024-10-19
| | | | Signed-off-by: Andrew Opalach <andrew@akon.city>
* all: #ifdef -> #if definedAndrew Opalach 2024-10-13
| | | | Signed-off-by: Andrew Opalach <andrew@akon.city>
* lib: Cleanup and add testsAndrew Opalach 2024-10-04
| | | | Signed-off-by: Andrew Opalach <andrew@akon.city>
* UpdateAndrew Opalach 2024-09-19
| | | | | | | | - Remove queue and liblfds - Add some helpers - Improve wstr compatibility Signed-off-by: Andrew Opalach <andrew@akon.city>
* UpdateAndrew Opalach 2024-04-09
| | | | | | | | | - Separate al_str_c functions between compile-time and runtime - Remove volatile from atomics - Allow not specifying a section in the log - Cleanup Signed-off-by: Andrew Opalach <andrew@akon.city>
* Switch the order of al_array_insert args, cleanupAndrew Opalach 2024-01-27
| | | | Signed-off-by: Andrew Opalach <andrew@akon.city>
* UpdateAndrew Opalach 2023-12-17
| | | | | | | | - Add queue (proof of concept liblfds wrapper) - Cleanup log code - Misc fixes Signed-off-by: Andrew Opalach <andrew@akon.city>
* Make log globals thread-local, add array referenceAndrew Opalach 2023-11-11
| | | | Signed-off-by: Andrew Opalach <andrew@akon.city>
* UpdateAndrew Opalach 2023-11-05
| | | | | | | | | - Add wrapping add functions (u32, u16) - Add al_str_is_empty and al_str_to_lower - Define al_sprintf - Fix some compiler warnings Signed-off-by: Andrew Opalach <andrew@akon.city>
* CleanupAndrew Opalach 2023-10-10
| | | | | | | | | - Remove al_str_tok - Improve al_str_get_line - Various consistency fixes - Cleanup comments Signed-off-by: Andrew Opalach <andrew@akon.city>
* Add libalabasterAndrew Opalach 2023-10-07
Signed-off-by: Andrew Opalach <andrew@akon.city>