[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #39077] using MEMP_USE_CUSTOM_POOLS doesn't work with
From: |
chrysn |
Subject: |
[lwip-devel] [bug #39077] using MEMP_USE_CUSTOM_POOLS doesn't work with sizeof |
Date: |
Mon, 27 May 2013 05:32:54 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.6+ (KHTML, like Gecko) Chromium/23.0.1271.95 Chrome/23.0.1271.95 Safari/537.6+ Debian/unstable (3.6.1-2) Epiphany/3.6.1 |
URL:
<http://savannah.nongnu.org/bugs/?39077>
Summary: using MEMP_USE_CUSTOM_POOLS doesn't work with sizeof
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: chrysn
Submitted on: Mon 27 May 2013 05:32:53 GMT
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release:
lwIP version: git head
_______________________________________________________
Details:
when custom lwippools.h files are used, sizeof() often can't be used because
#include lines into own libraries (which would declare what is to be sizeof'd)
would go in the middle of enum declarations and such.
that can be easily circumvented by including lwip/memp_std.h "blank" once,
which causes all external includes to be resolved; when it's later used with
LWIP_MEMPOOL defined, the include guards of the external headers get
triggered, and nothing problematic gets included.
a patch with explanation is attached.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 27 May 2013 05:32:53 GMT Name:
0001-include-the-memp-struct-list-once-before-actually-us.patch Size: 1kB
By: chrysn
<http://savannah.nongnu.org/bugs/download.php?file_id=28185>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?39077>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-devel] [bug #39077] using MEMP_USE_CUSTOM_POOLS doesn't work with sizeof,
chrysn <=