lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] errors in memp.h


From: Bill Yang
Subject: [lwip-users] errors in memp.h
Date: Tue, 2 Mar 2010 10:52:41 -0700

Hi,

 

Can any one figure out the errors “\lwip-1.3.0\src\include\lwip/memp.h(60): error:  #29: expected an _expression_” at the line after #include "lwip/memp_std.h" in memp.h file? This error comes when I defined MEM_USE_POOLS  1 and added a head file “lwippools.h” to compile.

 

#if MEM_USE_POOLS

/* Use a helper type to get the start and end of the user "memory pools" for mem_malloc */

typedef enum {

    /* Get the first (via:

       MEMP_POOL_HELPER_START = ((u8_t) 1*MEMP_POOL_A + 0*MEMP_POOL_B + 0*MEMP_POOL_C + 0)*/

    MEMP_POOL_HELPER_FIRST = ((u8_t)

#define LWIP_MEMPOOL(name,num,size,desc)

#define LWIP_MALLOC_MEMPOOL_START 1

#define LWIP_MALLOC_MEMPOOL(num, size) * MEMP_POOL_##size + 0

#define LWIP_MALLOC_MEMPOOL_END

#include "lwip/memp_std.h"

    ) ,

    /* Get the last (via:

       MEMP_POOL_HELPER_END = ((u8_t) 0 + MEMP_POOL_A*0 + MEMP_POOL_B*0 + MEMP_POOL_C*1) */

    MEMP_POOL_HELPER_LAST = ((u8_t)

#define LWIP_MEMPOOL(name,num,size,desc)

#define LWIP_MALLOC_MEMPOOL_START

#define LWIP_MALLOC_MEMPOOL(num, size) 0 + MEMP_POOL_##size *

#define LWIP_MALLOC_MEMPOOL_END 1

#include "lwip/memp_std.h"

    )

} memp_pool_helper_t;

 

Thanks,

 

Bill Yang
Software Engineer

direct:    +1 801.433.6354
email:   address@hidden


Parvus

RUGGED SOLUTIONS for REAL WORLD APPLICATIONS

USA3222 S. Washington St. | Salt Lake City, Utah 84115 | Tel. +1 801.483.1533 | Fax +1 801.483.1523 |
www.parvus.com    

A Member of EUROTECH GROUP

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]