lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Use sys_timeouts in sys_arch.h


From: Zschocke, Florian
Subject: [lwip-users] Use sys_timeouts in sys_arch.h
Date: Thu, 20 Feb 2003 09:37:45 +0100

Hi!

I would like to propse a change to the sys.h file. The sys.h file includes
the sys_arch.h file when NO_SYS is not defined. I would like to have it
include the sys_arch.h file *after* the timeout structs have been defined.
We use them in the sys_arch.h file for the sys_thread_t but can only use
them if they are defined before sys_arch.h is included. 

Since the timeout structures do not use anything from sys_arch.h this change
should cause no problems. A diff is attached.

Thanks,
Florian.


diff -u -r1.1.2.1 -r1.1.2.2
--- sys.h       2003/02/07 14:08:12     1.1.2.1
+++ sys.h       2003/02/19 16:50:24     1.1.2.2
@@ -59,8 +59,6 @@
 
 #else /* NO_SYS */
 
-#include "arch/sys_arch.h"
-
 typedef void (* sys_timeout_handler)(void *arg);
 
 struct sys_timeout {
@@ -73,6 +71,8 @@
 struct sys_timeouts {
   struct sys_timeout *next;
 };
+
+#include "arch/sys_arch.h"
 
 /* sys_init() must be called before anthing else. */
 void sys_init(void);




reply via email to

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