forked from len0rd/rockbox
Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes).
This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
adb506df14
commit
50a6ca39ad
194 changed files with 639 additions and 455 deletions
|
@ -23,8 +23,8 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#include <stdlib.h> /* for abs() */
|
||||
#include "buflib.h"
|
||||
|
||||
/* The main goal of this design is fast fetching of the pointer for a handle.
|
||||
* For that reason, the handles are stored in a table at the end of the buffer
|
||||
* with a fixed address, so that returning the pointer for a handle is a simple
|
||||
|
@ -311,7 +311,7 @@ buflib_free(struct buflib_context *ctx, int handle_num)
|
|||
while (next_block < freed_block)
|
||||
{
|
||||
block = next_block;
|
||||
next_block += ABS(block->val);
|
||||
next_block += abs(block->val);
|
||||
}
|
||||
/* If next_block == block, the above loop didn't go anywhere. If it did,
|
||||
* and the block before this one is empty, we can combine them.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue