Fixed correctness in stdio, minor changes in ls to handle dirs with negative sizes
[tpg/acess2.git] / Usermode / Libraries / libc.so_src / heap.c
index 6832738..10cdb24 100644 (file)
@@ -53,7 +53,7 @@ EXPORT void *malloc(size_t bytes)
        \r
        // Initialise Heap\r
        if(_heap_start == NULL)\r
-       {LOCAL void     *sbrk(int delta);\r
+       {\r
                _heap_start = sbrk(0);\r
                _heap_end = _heap_start;\r
                extendHeap(HEAP_INIT_SIZE);\r
@@ -208,10 +208,10 @@ EXPORT void *realloc(void *oldPos, size_t bytes)
 }\r
 \r
 /**\r
- \fn LOCAL void *extendHeap(int bytes)\r
- \brief Create a new block at the end of the heap area\r
\param bytes  Integer - Size reqired\r
- \return Pointer to last free block\r
\fn LOCAL void *extendHeap(int bytes)\r
\brief Create a new block at the end of the heap area\r
* \param bytes        Integer - Size reqired\r
\return Pointer to last free block\r
  */\r
 \r
 LOCAL void *extendHeap(int bytes)\r

UCC git Repository :: git.ucc.asn.au