buglwIP - A Lightweight TCP/IP stack - Bugs: bug #28866, mem_realloc function defined in...

 
 

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

bug #28866: mem_realloc function defined in mem.h.

Submitter:  Bill Auerbach <billauerbach>
Submitted:  Thu 11 Feb 2010 02:12:23 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  Change Request Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  CVS Head

Fri 12 Feb 2010 09:30:38 AM UTC, comment #3: 

Fixed.

Simon Goldschmidt <goldsimon>
Group administrator
Thu 11 Feb 2010 05:31:38 PM UTC, comment #2: 

No objections - it's no longer a function definition this way too.

Bill Auerbach <billauerbach>
Thu 11 Feb 2010 02:58:26 PM UTC, comment #1: 

I didn't think this would be a problem, but if it is I wouldn't move it to mem.c but instead add a define for it (that does nothing). The effect of this static function (it's not inline because the C standard dosn't allow that!) should be that it is optimized away since mem_realloc in lwIP does not support memory to be moved.

#define mem_realloc(mem, size) (mem)

Simon Goldschmidt <goldsimon>
Group administrator
Thu 11 Feb 2010 02:12:23 PM UTC, original submission:  

mem_realloc function should be moved to mem.c.  Its handling is compiler dependent and it might be compiled into the code multiple times as it stands.

Bill Auerbach <billauerbach>

 

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

No files currently attached

 

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 billauerbach (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-02-12 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code