/[lwip]/lwip/src/core/memp.c
ViewVC logotype

Diff of /lwip/src/core/memp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by davidhaas, Tue Feb 4 22:52:22 2003 UTC revision 1.9 by davidhaas, Thu Feb 6 22:18:56 2003 UTC
# Line 179  memp_malloc(memp_t type) Line 179  memp_malloc(memp_t type)
179    struct memp *memp;    struct memp *memp;
180    void *mem;    void *mem;
181    
182    ASSERT("memp_malloc: type < MEMP_MAX", type < MEMP_MAX);    LWIP_ASSERT("memp_malloc: type < MEMP_MAX", type < MEMP_MAX);
183    
184    memp = memp_tab[type];    memp = memp_tab[type];
185        
# Line 192  memp_malloc(memp_t type) Line 192  memp_malloc(memp_t type)
192        lwip_stats.memp[type].max = lwip_stats.memp[type].used;        lwip_stats.memp[type].max = lwip_stats.memp[type].used;
193      }      }
194  #endif /* MEMP_STATS */  #endif /* MEMP_STATS */
195      ASSERT("memp_malloc: memp properly aligned",      LWIP_ASSERT("memp_malloc: memp properly aligned",
196             ((u32_t)MEM_ALIGN((u8_t *)memp + sizeof(struct memp)) % MEM_ALIGNMENT) == 0);             ((u32_t)MEM_ALIGN((u8_t *)memp + sizeof(struct memp)) % MEM_ALIGNMENT) == 0);
197    
198      mem = MEM_ALIGN((u8_t *)memp + sizeof(struct memp));      mem = MEM_ALIGN((u8_t *)memp + sizeof(struct memp));
# Line 245  memp_free(memp_t type, void *mem) Line 245  memp_free(memp_t type, void *mem)
245    memp->next = memp_tab[type];    memp->next = memp_tab[type];
246    memp_tab[type] = memp;    memp_tab[type] = memp;
247    
248    ASSERT("memp sanity", memp_sanity());    LWIP_ASSERT("memp sanity", memp_sanity());
249    
250    return;    return;
251  }  }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26