diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-11-18 04:32:08 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-11-18 04:32:08 +0100 |
commit | 3270f4407748d8ebc52abae76735a8e88f8a0f1d (patch) | |
tree | 4126f9711aa8ab6f2fba870a5f2da39374381e9f | |
parent | m (diff) | |
download | slibc-3270f4407748d8ebc52abae76735a8e88f8a0f1d.tar.gz slibc-3270f4407748d8ebc52abae76735a8e88f8a0f1d.tar.bz2 slibc-3270f4407748d8ebc52abae76735a8e88f8a0f1d.tar.xz |
update todo
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | TODO | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -25,6 +25,17 @@ __attribute__((malloc)), to append a string or character. LOW PRIORITY: debugging support (16 p435) _GNU_SOURCE, system-dependant + void* extalloca(void* p, size_t extent) :: extend alloca-allocation + requires that nothing has been allocated to the stack since p. + difficult to implement as a function. + as a macro: + ({ void* q = alloca(extent); (long int)q < (long int)p ? q : p; }) + void* dealloca(size_t amount) + deallocate the last amount bytes allocated to the stack + void* zalloca(size_t size) + difficult to implement as a function. + as a macro: + ({ void* p = alloca(size); memset(p, 0, size); }) crt0 with cpu cycle count printing |