Commit ec0cb86a authored by Bastien Legoy's avatar Bastien Legoy
Browse files

Started Part 2

parent 388ecd6e
......@@ -11,8 +11,17 @@
void *
emalloc_small(unsigned long size)
{
/* ecrire votre code ici */
return (void *)0;
if (arena.chunkpool == NULL)
{
//unsigned long bloc_size = mem_realloc_small(); //TODO: uncomment, unused variable
// TODO: create chain list
}
// TODO: select head value
// TODO: replace head with next element (if any)
return mark_memarea_and_get_user_ptr(arena.chunkpool /*TODO: change this value*/, CHUNKSIZE, SMALL_KIND);
}
void efree_small(Alloc a) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment