aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-11-18 04:32:08 +0100
committerMattias Andrée <maandree@operamail.com>2015-11-18 04:32:08 +0100
commit3270f4407748d8ebc52abae76735a8e88f8a0f1d (patch)
tree4126f9711aa8ab6f2fba870a5f2da39374381e9f
parentm (diff)
downloadslibc-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--TODO11
1 files changed, 11 insertions, 0 deletions
diff --git a/TODO b/TODO
index 65bd67f..0cf962d 100644
--- a/TODO
+++ b/TODO
@@ -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