This repository has been archived on 2025-02-04. You can view files and clone it, but cannot push or open issues or pull requests.
helpless/oogabooga
Charlie db73d0bd2e - Basic fixed-length string with replacement for C standard printing & fmt stuff
- Jai-like print procedures
	- %s formats 'string' and to format a char* you do %cs
	- It detects if %cs pointer is outside of program memory or stack and asserts
	- AND same for if a char* is passed to %s
	- Print directly writes to stdout without any allocations
	- Basic utlity procedures
	- Buncha string tests
- Beef up assert to display file & line as well
- Don't define memcpy procedures if compiler has intrinsics for them
- Init memory arena for allocations in initialization time before heap is ready (stack memory)
- os_compare_and_swap
- Spinlock "primitive" (wrapper around a bool using compare_and_swap)
- Switched to using spinlock instead of os mutex in heap for synchronization.
- is_pointer_valid() which checks if address is in program_memory or thread stack
2024-06-28 18:50:30 +02:00
..
base.c - Basic fixed-length string with replacement for C standard printing & fmt stuff 2024-06-28 18:50:30 +02:00
memory.c - Basic fixed-length string with replacement for C standard printing & fmt stuff 2024-06-28 18:50:30 +02:00
oogabooga.c - Basic fixed-length string with replacement for C standard printing & fmt stuff 2024-06-28 18:50:30 +02:00
os_impl_windows.c - Basic fixed-length string with replacement for C standard printing & fmt stuff 2024-06-28 18:50:30 +02:00
os_interface.c - Basic fixed-length string with replacement for C standard printing & fmt stuff 2024-06-28 18:50:30 +02:00
string.c - Basic fixed-length string with replacement for C standard printing & fmt stuff 2024-06-28 18:50:30 +02:00
tests.c - Basic fixed-length string with replacement for C standard printing & fmt stuff 2024-06-28 18:50:30 +02:00