lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #25608] Unable to use NO_SYS=1 and SYS_LIGHTWEIGHT_PRO


From: Kieran Mansley
Subject: [lwip-devel] [bug #25608] Unable to use NO_SYS=1 and SYS_LIGHTWEIGHT_PROT=1
Date: Tue, 03 Mar 2009 16:51:04 +0000
User-agent: Opera/9.21 (X11; Linux i686; U; en)

Follow-up Comment #9, bug #25608 (project lwip):

I can see what Bill is getting at.  It looks to me as though the code in
sys.h has been written to assume that if you're using NO_SYS=1, you are not
using SYS_LIGHTWEIGHT_PROT=1: the SYS_LIGHTWEIGHT_PROT stuff requires
sys_arch.c, but we only include sys_arch.h if NO_SYS=0

There are two ways around this:
 - restructure the code in sys.h to better reflect what it seems to be
currently assuming by moving the SYS_LIGHTWEIGHT_PROT stuff into the NO_SYS=0
section; or
 - restructure the code in sys.h to allow SYS_LIGHTWEIGHT_PROT to be used
with NO_SYS=1, i.e. what Bill is requesting.

Let's assume we try and do what Bill needs: Simon can you give some more
detail of what you think the problem would be with including sys_arch.h in the
NO_SYS=1 section of sys.h?  One possibility might be to use "#if NO_SYS in
sys_arch.h, which although it makes the port-defined files a little more
messy, would allow the port more flexibility in what it choses to define, and
what can be left to be dummy-defined by sys.h.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?25608>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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