diff packages/redboot/current/include/redboot.h @ 154:e2d866e32dac

Merge from eCos master repository on 2001-02-26-23:18:05-GMT
author jlarmour
date Tue, 27 Feb 2001 01:21:45 +0000
parents 25e238959bae
children b939e9cada46
line wrap: on
line diff
--- a/packages/redboot/current/include/redboot.h
+++ b/packages/redboot/current/include/redboot.h
@@ -148,7 +148,8 @@ static _cmd_entry(_s_,_h_,_u_,_f_,_n_)
 
 // Initialization functions
 #define RedBoot_INIT_FIRST 0000
-#define RedBoot_INIT_PRIO(_n_) 1000+_n_
+// Specify a 3 digit numeric value for proper prioritizing
+#define RedBoot_INIT_PRIO(_n_) 1##_n_
 #define RedBoot_INIT_LAST  9999
 typedef void void_fun(void);
 typedef void_fun *void_fun_ptr;
@@ -156,7 +157,8 @@ struct init_tab_entry {
     void_fun_ptr fun;
 } CYG_HAL_TABLE_TYPE;
 #define _RedBoot_init(_f_,_p_)                                          \
-struct init_tab_entry _init_tab_##_p_##_f_ CYG_HAL_TABLE_QUALIFIED_ENTRY(RedBoot_inits,_f_) = { _f_ }; 
+struct init_tab_entry _init_tab_##_p_##_f_                              \
+  CYG_HAL_TABLE_QUALIFIED_ENTRY(RedBoot_inits,_p_##_f_) = { _f_ }; 
 #define RedBoot_init(_f_,_p_) _RedBoot_init(_f_,_p_)
 
 // Main loop [idle] call-back functions