1
0
Fork 0
forked from len0rd/rockbox

Now beep can be disabled.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7365 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Miika Pekkarinen 2005-08-20 21:17:41 +00:00
parent 5d0fe30feb
commit 9d7fd1804e
6 changed files with 51 additions and 2 deletions

View file

@ -37,6 +37,9 @@ void* codec_malloc(size_t size)
{
void* x;
if (mem_ptr + size > bufsize)
return NULL;
x=&mallocbuf[mem_ptr];
mem_ptr+=(size+3)&~3; /* Keep memory 32-bit aligned */
@ -47,6 +50,8 @@ void* codec_calloc(size_t nmemb, size_t size)
{
void* x;
x = codec_malloc(nmemb*size);
if (x == NULL)
return NULL;
local_rb->memset(x,0,nmemb*size);
return(x);
}