f5631d8bda
The inner loop of the read operation already fills the buffer as far as it can go. No need to drop into "continue;".
9a9ae7d6fd
The SIGABRT handler can no longer invoke abort() recursively.
64ab8643b5
The size of a slab entry is now calculated inside a single local function, rather than calculated differently in different parts of stdlib_slab.c. This change made it easier to simplify the implementation.
f7fd63acb4
Indentation fix.
8bd7403ae3
The 'struct MemoryNode' is now so larger than the smallest usable allocation size is now 16 bytes.
5efacb1a2b
Fix for unnecessary compiler warnings.
7207c96a6f
Made the slab allocator work with libunix.a again.
21bc996705
Fixed to make use of the aligned slab address when verifying that the slab node is present in the slab. The requested slab size is now properly rounded up to a power of 2 and will always be limited to a valid range.
438fd5bbd2
Fixed the MemoryNode padding, which was short of a 32 bit word.
101846e423
If the memory management system constructor fails, it now prints some diagnostic debug output.
fba7f7da9b
Small type corrections.
115099698a
Added an assertion to verify that the first free chunk on the slab's list is really always available.
4f3d0c981c
If the memory debug option is active, realloc() can no longer damage the trailing guard area.
71708e84ce
The memory debugging code now places the the damage detection areas which bracket the allocation area so that the originally requested allocation size is used, not the rounded-up size. Debug output in memory node checking no longer counts the non-breaking space character as unprintable.
3d70b18c23
Simplified how the slab allocator, the memory pool or AllocMem() are being used. Added robust integer overflow detection. Allocation sizes are now padded to a multiple of MEM_BLOCKSIZE. Repaired how the plain AllocMem() allocations are managed. alloca() cleanup is disabled during the stdlib_memory_exit destructor's work. The stdlib_memory_init constructor is more robust and now insists that exec.library V39+ uses memory pools.
842acf2eaa
Updated to properly use the MemoryNode changes.
b9463f442b
Added notes on calloc() being safe to use under certain circumstances if the number of elements or the element size happens to be 0. In effect, malloc() will decide what is going to happen.
7ceeb4f8ed
If alloca() would end up returning a NULL pointer, it now invokes the default alloca trap function, which calls abort(). You can override this, if you need to.
6197531c90
Added integer overflow checking for the element_size and count parameters.
b94937ff38
Fixed the bug which broke both fgets() and gets(): copying data from the FILE buffer failed to bump the destination string pointer. Also added an abort check in order to avoid turning the memcpy() operation into an uninterruptable sequence.
2cb54d48a9
Added the common function which both fputs() and puts() share now.
a7389454bb
fputs() and puts() now share the same common code. Added abort checks in order to avoid turning the memcpy() operations into an uninterruptable sequence.
45d118101a
Added assertion test for the buffer alignment padding size.
606a65db79
Merge pull request #353 from BSzili/master
c4fab264b2
add doomsound.library sdk
606a65db79
Merge pull request #353 from BSzili/master
c4fab264b2
add doomsound.library sdk
b38d9a0482
Backport: Adjust to changes in muimaster.library
4e384baf1c
Other: Fix url for acpica
bc30b937cd
Merge pull request #352 from TheFakeMontyOnTheRun/TheFakeMontyOnTheRun-patch-1
c97330e108
Update README.md to include warning about Make version on MacOS
bc30b937cd
Merge pull request #352 from TheFakeMontyOnTheRun/TheFakeMontyOnTheRun-patch-1
c97330e108
Update README.md to include warning about Make version on MacOS
f10c22508f
Merge pull request #344 from BSzili/master
0911c28b72
generate vbcc inline headers
f10c22508f
Merge pull request #344 from BSzili/master
0911c28b72
generate vbcc inline headers