Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: malloc in plugins
From: BlueChip (cs_bluechip_at_webtribe.net)
Date: 2004-01-08


HEEEEEELP

I have been stumped by malloc! I need/want to use malloc/free in a plugin
...I wrote it originally before the plugin system was implemented, and all
WAS well, so guess it's relatively simple if you know what I've missed.

If anyone could let me know what I have to do to get it running again, I
would be endebted :)

I guess this needs to be in plugin.c:
malloc,
calloc,
free,
realloc,

and this in plugin.h:
void* (*malloc)(size_t);
void* (*calloc)(size_t nmemb, size_t size);
void (*free)(void *);
void* (*realloc)(void *, size_t);

and a couple of #includes for dmalloc.h

...but I just can't get a working compile :(

Thanks in advance,

BC



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa