lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #20254] Initializing static/global variables


From: Petr Cernin
Subject: [lwip-devel] [bug #20254] Initializing static/global variables
Date: Tue, 26 Jun 2007 07:37:51 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

Follow-up Comment #5, bug #20254 (project lwip):

I agree that the primary problem is on my side - my compiler/linker/startup
code seems to be broken.

But: There is a lot of predecents in lwip source code.
Please look at:

igmp_init()
ip_reass_init()
mem_init()
netif_init()
raw_init()
stats_init()
tcp_init()
...
...

In my opinion the explicit initialization is a little bit cleaner than
implicit one done by startup code. 

More over, it think it would be nice if lwip stack has implemented cleanup()
functionality -- where all allocated resources are released. Then the
complete initialization of global variables inside _init() functions is
necessary.



    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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