buglwIP - A Lightweight TCP/IP stack - Bugs: bug #39077, using MEMP_USE_CUSTOM_POOLS...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #39077: using MEMP_USE_CUSTOM_POOLS doesn't work with sizeof

Submitter:  chrysn <chrysn>
Submitted:  Mon 27 May 2013 05:32:53 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  Feature Request Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  git head

Wed 11 Feb 2015 10:11:16 PM UTC, comment #1: 

Great idea, thanks for the patch.

Simon Goldschmidt <goldsimon>
Group administrator
Mon 27 May 2013 05:32:53 AM UTC, original submission:  

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.

chrysn <chrysn>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by chrysn (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-11 goldsimon Item GroupNone Feature Request
        StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2013-05-27 chrysn Attached File- Added 0001-include-the-memp-struct-list-once-before-actually-us.patch, #28185

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code