[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #17922] mem_malloc bug
From: |
Jonathan Larmour |
Subject: |
[lwip-devel] [bug #17922] mem_malloc bug |
Date: |
Wed, 11 Apr 2007 15:11:56 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070223 Fedora/1.5.0.10-1.fc5 Firefox/1.5.0.10 |
Follow-up Comment #9, bug #17922 (project lwip):
Maybe it might be worth tweaking mem.h to be something like:
#if MEM_LIBC_MALLOC
/* aliases for C library malloc() */
#ifndef mem_init
# define mem_init()
#endif
#ifndef mem_free
# define mem_free(x) free(x)
#endif
#ifndef mem_malloc
# define mem_malloc(x) malloc(x)
#endif
#ifndef mem_realloc
# define mem_realloc(x, size) realloc(x,size)
#endif
This way a port can choose to provide its own function, even if it's only a
wrapper around malloc, adding some locking.
What do you think?
To answer the other part of the initial report: yes there are systems with
string functions but not a heap implementation.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?17922>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #17922] mem_malloc bug, Simon Goldschmidt, 2007/04/11
- [lwip-devel] [bug #17922] mem_malloc bug, Christiaan Simons, 2007/04/11
- [lwip-devel] [bug #17922] mem_malloc bug, Simon Goldschmidt, 2007/04/11
- [lwip-devel] [bug #17922] mem_malloc bug,
Jonathan Larmour <=
- [lwip-devel] [bug #17922] mem_malloc bug, Simon Goldschmidt, 2007/04/24
- [lwip-devel] [bug #17922] mem_malloc bug, Jonathan Larmour, 2007/04/24
- [lwip-devel] [bug #17922] mem_malloc bug, Simon Goldschmidt, 2007/04/24
- [lwip-devel] [bug #17922] mem_malloc bug, Christiaan Simons, 2007/04/25
- [lwip-devel] [bug #17922] mem_malloc bug, Simon Goldschmidt, 2007/04/25
- [lwip-devel] [bug #17922] mem_malloc bug, Christiaan Simons, 2007/04/25
- [lwip-devel] [bug #17922] mem_malloc bug, Simon Goldschmidt, 2007/04/25
- [lwip-devel] [bug #17922] mem_malloc bug, Simon Goldschmidt, 2007/04/25
- [lwip-devel] [bug #17922] mem_malloc bug, Christiaan Simons, 2007/04/26
- [lwip-devel] [bug #17922] mem_malloc bug, Simon Goldschmidt, 2007/04/26