ESP8266 Developer Zone The Official ESP8266 Forum 2015-09-23T00:03:34+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1042 2015-09-23T00:03:34+08:00 2015-09-23T00:03:34+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1042&p=3807#p3807 <![CDATA[Re: The os_realloc() API]]> Statistics: Posted by eriksl — Wed Sep 23, 2015 12:03 am


]]>
2015-09-22T03:09:22+08:00 2015-09-22T03:09:22+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1042&p=3792#p3792 <![CDATA[Re: The os_realloc() API]]>
Thanks guys!!

Neil

Statistics: Posted by kolban — Tue Sep 22, 2015 3:09 am


]]>
2015-09-05T02:07:23+08:00 2015-09-05T02:07:23+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1042&p=3557#p3557 <![CDATA[Re: The os_realloc() API]]>
How much effort would it take to at least add this one line to an include file...

It's always the same problem, no prototypes.

Statistics: Posted by eriksl — Sat Sep 05, 2015 2:07 am


]]>
2015-09-01T22:07:33+08:00 2015-09-01T22:07:33+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1042&p=3524#p3524 <![CDATA[Re: The os_realloc() API]]>
kolban wrote:
The question, of course ... is how valid is this notion?
I've been using it for months now and it seems to work fine.

Statistics: Posted by dkinzer — Tue Sep 01, 2015 10:07 pm


]]>
2015-09-01T12:23:15+08:00 2015-09-01T12:23:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1042&p=3513#p3513 <![CDATA[The os_realloc() API]]> There is a rumor that there is an API called "os_realloc()" which would be a partner to "os_malloc()" and "os_free()". See here for a description of realloc().

http://linux.die.net/man/3/realloc

The claim is that os_realloc() is achieved via the following definitions.

#define os_realloc pvPortRealloc
void *pvPortRealloc(void* ptr, size_t size);

The question, of course ... is how valid is this notion? Is it simply that os_realloc() was missed in the docs and headers ... or is it simply not available or shouldn't be used?

Neil

Statistics: Posted by kolban — Tue Sep 01, 2015 12:23 pm


]]>